From: Michael J Gruber <git@drmicha.warpmail.net>
To: Git Mailing List <git@vger.kernel.org>
Subject: [BUG?] worktree setup broken in subdirs with git alias
Date: Thu, 7 Jan 2016 08:15:51 +0100 [thread overview]
Message-ID: <568E10A7.5050606@drmicha.warpmail.net> (raw)
Hi there,
sorry I can't dig deeper now, but the worktree code from next seems to
get confused now as soon as you cd to a subdir of a worktree (other than
the main worktree) and use an alias:
git help ss
`git ss' is aliased to `status -s -b'
[mjg@skimbleshanks Biomath-WS15 (exam $)]✓ git status -s -b
## exam
[mjg@skimbleshanks Biomath-WS15 (exam $)]✓ git ss
fatal: internal error: work tree has already been set
Current worktree: /home/mjg/Teaching/LUK
New worktree: /home/mjg/Teaching/LUK/Biomath-WS15
This is inside the subdir "Biomath-WS15" of the worktree residing in
".../LUK".
It wasn't like that last year ;)
Something about setting GIT_DIR and the like in the environment must
have changed (for aliases), badly interacting with the worktree code.
Michael
next reply other threads:[~2016-01-07 7:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-07 7:15 Michael J Gruber [this message]
2016-01-07 9:26 ` [BUG?] worktree setup broken in subdirs with git alias Duy Nguyen
2016-01-07 9:31 ` Duy Nguyen
2016-01-07 9:40 ` Michael J Gruber
2016-01-07 9:48 ` Duy Nguyen
2016-01-07 9:49 ` Michael J Gruber
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=568E10A7.5050606@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--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