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

Re: Newbie falls at first hurdle

From
Junio C Hamano <junkio@cox.net>
Date
Sep 17, 2005, 16:13 UTC
Message-ID
<7vek7nbrk7.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200509171309.46893.alan@chandlerfamily.org.uk>
Alan Chandler <alan@chandlerfamily.org.uk> writes:
Show 7 quoted lines
> 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?
Sorry, that is not a very helpful error message.

We do not track 'directories'. Only files and symlinks, which could live within subdirectories, and that's why you got that error message -- you told it to add a directory. You'd need something like this:

    $ find * ! -type d -print0 | xargs -0 git add
Previous: Alan ChandlerNext: Alan Chandler
Message 2 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.