Git development
 help / color / mirror / Atom feed
* [BUG?] worktree setup broken in subdirs with git alias
@ 2016-01-07  7:15 Michael J Gruber
  2016-01-07  9:26 ` Duy Nguyen
  0 siblings, 1 reply; 6+ messages in thread
From: Michael J Gruber @ 2016-01-07  7:15 UTC (permalink / raw)
  To: Git Mailing List

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-07  9:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-07  7:15 [BUG?] worktree setup broken in subdirs with git alias Michael J Gruber
2016-01-07  9:26 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox