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

Re: Newbie falls at first hurdle

From
Petr Baudis <pasky@suse.cz>
Date
Sep 18, 2005, 14:59 UTC
Message-ID
<20050918145958.GB22391@pasky.or.cz>
In-Reply-To
<200509171309.46893.alan@chandlerfamily.org.uk>

Dear diary, on Sat, Sep 17, 2005 at 02:09:46PM CEST, I got a letter where Alan Chandler <alan@chandlerfamily.org.uk> told me that...

Show 22 quoted lines
> I have been lurking on this mailing list since the beginning, but have just 
> got to the point where I want to use git to manage something I am doing.
> 
> I have already got a working directory (or rather a directory hierarchy) of an 
> application with files (combination of html and java), and I need to start 
> applying some control to it.  The Tutorial unfortunately does not cover this 
> case.  Nevertheless I have proceeded.
> 
> So at the top-level I have done 'git-init-db'
> 
> but I now assume I have to add all the files to the cache
> 
> So 'git-update-cache --add *' would seem to be the next step.
> 
> However this fails with a message 
> 
> error: JavaSource: is a directory
> fatal: Unable to add JavaSource to database; maybe you want to use --add 
> option?
> 
> Since I am already using the --add option, I really don't understand what I am 
> doing wrong.

Two reports about this error message in one day, and I've seen more in the past. Heh. ;-) I'd submit a patch, but I'm still staying at the last git release because of the command renames.

BTW, cg-add should be now (not in the last release yet, though) totally directory-friendly.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
Previous: Alan ChandlerNext: Junio C Hamano
Message 6 of 8 in “Newbie falls at first hurdle”
  1. Alan ChandlerSep 17, 2005
  2. Junio C HamanoSep 17, 2005
  3. Alan ChandlerSep 17, 2005
  4. Junio C HamanoSep 17, 2005
  5. Alan ChandlerSep 17, 2005
  6. Petr BaudisSep 18, 2005
  7. Junio C HamanoSep 18, 2005
  8. Improve git-update-index error reportingPetr Baudis, Sep 18, 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.