Re: bug: git submodule add fails when .git is a symlink
- From
Joey Hess <id@joeyh.name>
- Date
- Mar 1, 2016, 23:17 UTC
- Message-ID
- <20160301231720.GB3731@kitenet.net>
- In-Reply-To
- <xmqq8u217tqa.fsf@gitster.mtv.corp.google.com>
Junio C Hamano wrote:
Show 5 quoted lines
> A more pertinent question may be which version of Git did the above > ever work, I guess. We fairly liberally chdir around and I do not > think we deliberately avoid assuming that "cd .git && cd .." might > not come back to the original directory, for example, so I wouldn't > be surprised if it never worked.
IIRC git used symlinks for .git in submodules before version 1.7.8, so I guess that older versions supported that pretty well.
This one case is the only time I've seen a symlink for .git present a problem so far.
-- see shy jo