Re: Something strange has happened to my git HEADs.
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:23
Krzysztof Halasa [off-list ref] writes:
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.