Re: What's the ".git/gitdir" file?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 27, 2015, 22:54 UTC
- Message-ID
- <xmqqpozzncs0.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <87a8r4ary9.fsf@kyleam.com>
Kyle Meyer <kyle@kyleam.com> writes:
Show 16 quoted lines
> When a ".git" file points to another repo, a ".git/gitdir" file is > created in that repo. > > For example, running > > $ mkdir repo-a repo-b > $ cd repo-a > $ git init > $ cd ../repo-b > $ echo "gitdir: ../repo-a/.git" > .git > $ git status > > results in a file "repo-a/.git/gitdir" that contains > > $ cat repo-a/.git/gitdir > .git
Sounds like a bug in the recently added "worktree" stuff. Perhaps update_linked_gitdir() tweaked by 82fde87f (setup: update the right file in multiple checkouts, 2015-08-25) is misbehaving?