From: Junio C Hamano <gitster@pobox.com>
To: Stefan Beller <sbeller@google.com>
Cc: Joey Hess <id@joeyh.name>, "git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: bug: git submodule add fails when .git is a symlink
Date: Tue, 01 Mar 2016 13:50:53 -0800 [thread overview]
Message-ID: <xmqq8u217tqa.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <CAGZ79kY6Lf6u0=s8J_cqRNFsry4nu2SdL0GZ2gkFsu6gBrB65Q@mail.gmail.com> (Stefan Beller's message of "Tue, 1 Mar 2016 13:39:26 -0800")
Stefan Beller <sbeller@google.com> writes:
> On Tue, Mar 1, 2016 at 12:42 PM, Joey Hess <id@joeyh.name> wrote:
>> git init gitdir
>> mkdir worktree
>> cd worktree
>> ln -s ../gitdir/.git .git
>> git submodule add /any/git/repo sub
>>
>> fatal: Could not chdir to '../../../sub': No such file or directory
>>
>> Fairly sure this is a bug..
>
> Which version(s) of Git do you use?
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.
next prev parent reply other threads:[~2016-03-01 21:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-01 20:42 bug: git submodule add fails when .git is a symlink Joey Hess
2016-03-01 21:39 ` Stefan Beller
2016-03-01 21:49 ` Stefan Beller
2016-03-01 23:14 ` Joey Hess
2016-03-01 21:50 ` Junio C Hamano [this message]
2016-03-01 23:17 ` Joey Hess
2016-03-02 8:49 ` Jeff King
2016-04-20 16:41 ` Stefan Beller
2016-04-20 17:31 ` Stefan Beller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqq8u217tqa.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=id@joeyh.name \
--cc=sbeller@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.