From: Mike Hommey <mh@glandium.org>
To: git@vger.kernel.org
Subject: `git rev-parse --git-common-dir` doesn't work in a subdirectory of the main work tree
Date: Fri, 12 Feb 2016 12:47:23 +0900 [thread overview]
Message-ID: <20160212034723.GA20739@glandium.org> (raw)
Hi,
In a worktree, git rev-parse --git-common-dir returns the non
worktree-specific git directory. e.g. .git instead of
.git/worktrees/name. The problem is that while it returns the right
thing from a subdirectory of a worktree, it doesn't from a subdirectory
of the "main" work tree. In the latter case it returns ".git" instead
of the full path to it.
Mike
next reply other threads:[~2016-02-12 3:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-12 3:47 Mike Hommey [this message]
2016-02-12 4:31 ` [PATCH] rev-parse: take prefix into account in --git-common-dir Nguyễn Thái Ngọc Duy
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=20160212034723.GA20739@glandium.org \
--to=mh@glandium.org \
--cc=git@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).