Re: `.git` symlink makes `git submodule add` fail
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 12, 2016, 18:19 UTC
- Message-ID
- <xmqq60xtvlj9.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <xmqqio1tvlzu.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> Vít Novotný <witiko@gmail.com> writes: > >> Is this a bug, or is the ability to symlink `.git` just a happy coincidence? > > It has never been supported.
Oops, hit "send" too early.
We have support for a "gitdir:" facility that would work even on a filesystem that cannot do symlinks (see gitrepository-layout(5)), and both the higher-level submodule Porcelain and the more recent "worktree" experimental code do use it.