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

Re: Something strange has happened to my git HEADs.

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 15, 2008, 18:32 UTC
Message-ID
<7vwso3n8i5.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<m38x0j51bw.fsf@maximus.localdomain>
Krzysztof Halasa <khc@pm.waw.pl> writes:
Show 14 quoted lines
> 2. Working dirs using this repo are in /usr/src/linux* and
> /usr/src/linux-test is one of them, currently (.git dir):
> lrwx 1      30 2007-10-09 00:55 config -> ~/scm/linux-2.6/config
> lrwx 1      35 2007-08-24 18:33 description -> ~/scm/linux-2.6/description
> -rw- 1     126 2008-02-01 21:39 FETCH_HEAD
> lrwx 1      19 2008-03-15 17:52 HEAD -> refs/heads/eelogger
> -rw- 1 2220597 2008-03-15 17:56 index
> drwx 2    4096 2008-03-15 17:57 info
> -rw- 1   21482 2008-03-15 17:57 info/refs
> lrwx 1      28 2007-08-24 18:33 logs -> ~/scm/linux-2.6/logs
> lrwx 1      31 2007-08-24 18:33 objects -> ~/scm/linux-2.6/objects
> -rw- 1      41 2008-03-15 17:56 ORIG_HEAD
> -rw- 1   17909 2008-03-15 17:56 packed-refs
> lrwx 1      28 2007-08-24 18:33 refs -> ~/scm/linux-2.6/refs
This is wrong.  How did you set this up initially?

If you are putting a work tree by symlinking contents of its .git directory, info and packed-refs are alsy symlinked. See how contrib/workdir/git-new-workdir does this.

Previous: Krzysztof HalasaNext: Krzysztof Halasa
Message 3 of 4 in “Something strange has happened to my git HEADs.”
  1. Krzysztof HalasaMar 15, 2008
  2. Krzysztof HalasaMar 15, 2008
  3. Junio C HamanoMar 15, 2008
  4. Krzysztof HalasaMar 15, 2008

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.