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

Re: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.

From
TGThomas Glanzmann <thomas@glanzmann.de>
Date
Jun 8, 2007, 10:21 UTC
Message-ID
<20070608102113.GB2335@cip.informatik.uni-erlangen.de>
In-Reply-To
<7vodjqkazp.fsf@assigned-by-dhcp.cox.net>
Hello Junio,
> ... well that was my initial guess, but even after setting up such a
> funny repository by hand, I cannot seem to reproduce it.
This was on a fresh clone. What I did was:
        (s017241) [/usr/src] git clone 131.188.30.102:/scratch/tg/linux-2.6/
        Initialized empty Git repository in /usr/src/linux-2.6/.git/
        remote: Generating pack...
        remote: Done counting 496189 objects.
        remote: Deltifying 496189 objects...
        remote:  100% (496189/496189) done
        Indexing 496189 objects...
        remote: Total 496189 (delta 401610), reused 496189 (delta 401610)
        100% (496189/496189) done
        Resolving 401610 deltas...
        100% (401610/401610) donedone
        fatal: Not a valid object name HEAD

I see it. Last line. I tried to clone from a repository which itself had a detached HEAD. Could that be the problem?

        Thomas
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 7 in “fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.”
  1. Thomas GlanzmannJun 8, 2007
  2. Junio C HamanoJun 8, 2007
  3. Thomas GlanzmannJun 8, 2007
  4. Junio C HamanoJun 8, 2007
  5. Thomas GlanzmannJun 8, 2007
  6. Junio C HamanoJun 8, 2007
  7. carbonated beverageJun 10, 2007

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.