git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: cg-commit doesn't like new repository

From
Petr Baudis <pasky@suse.cz>
Date
Nov 27, 2005, 14:20 UTC
Message-ID
<20051127142005.GG22159@pasky.or.cz>
In-Reply-To
<200511192243.10815.alan@chandlerfamily.org.uk>

Dear diary, on Sat, Nov 19, 2005 at 11:43:10PM CET, I got a letter where Alan Chandler <alan@chandlerfamily.org.uk> said that...

> I just decided to make a repository of /etc, but because I didn't want to load 
> in all the files, I used git-init-db to create the repository rather than 
> cg-init-db

cg-init -I ? Its help message would also explain to you how to make the initial commit manually. ;-)

> I presume there is something that cg-init-db does which makes it suitable for 
> cogito - but what

cg-commit will try to determine the list of files to commit by diffing against the previous commit, but there is no previous commit. You need to pass cg-commit the -C option in order to make the initial commit.

> and shouldn't cg-commit notice and either do it automatically or give
> a different error message?

Good point. cg-commit will now print out friendly error message and suggest you to use -C.

Thanks,
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Alan Chandler
Message 2 of 2 in “cg-commit doesn't like new repository”
  1. Alan ChandlerNov 19, 2005
  2. Petr BaudisNov 27, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.