* Worktree "gitdir" file being mangled after upgrade to 2.7.0
@ 2016-01-13 23:47 Erik Johnson
2016-01-14 2:36 ` Junio C Hamano
2016-01-14 18:36 ` Andreas Schwab
0 siblings, 2 replies; 6+ messages in thread
From: Erik Johnson @ 2016-01-13 23:47 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 819 bytes --]
Since upgrading to 2.7.0 last week, eventually I'll get to a point when
I run 'git worktree list' where several worktrees are incorrectly
reported as pointing to my main git checkout. Further analysis of the
files in $GIT_DIR/worktrees/worktree_name/ shows that the gitdir file
for the worktrees which display incorrectly contains ".git" instead of
what it should contain (i.e. "/path/to/worktree/.git".
This was reported a couple days ago on Github:
https://github.com/git/git-scm.com/issues/650
Since the audiences for the mailing list and Github don't overlap
completely, I figured I'd report it here to get this issue in front of
as many eyes as possible.
--
-Erik
"For me, it is far better to grasp the universe as it really is than to
persist in delusion, however satisfying and reassuring." --Carl Sagan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Worktree "gitdir" file being mangled after upgrade to 2.7.0
2016-01-13 23:47 Worktree "gitdir" file being mangled after upgrade to 2.7.0 Erik Johnson
@ 2016-01-14 2:36 ` Junio C Hamano
2016-01-14 3:29 ` Duy Nguyen
2016-01-14 18:36 ` Andreas Schwab
1 sibling, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2016-01-14 2:36 UTC (permalink / raw)
To: Nguyễn Thái Ngọc Duy, Michael Rappazzo; +Cc: git, Erik Johnson
Erik Johnson <palehose@gmail.com> writes:
> Since upgrading to 2.7.0 last week, eventually I'll get to a point when
> I run 'git worktree list' where several worktrees are incorrectly
> reported as pointing to my main git checkout. Further analysis of the
> files in $GIT_DIR/worktrees/worktree_name/ shows that the gitdir file
> for the worktrees which display incorrectly contains ".git" instead of
> what it should contain (i.e. "/path/to/worktree/.git".
>
> This was reported a couple days ago on Github:
>
> https://github.com/git/git-scm.com/issues/650
>
> Since the audiences for the mailing list and Github don't overlap
> completely, I figured I'd report it here to get this issue in front of
> as many eyes as possible.
Thanks for relaying. Duy, Michael, I think this is your area?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Worktree "gitdir" file being mangled after upgrade to 2.7.0
2016-01-14 2:36 ` Junio C Hamano
@ 2016-01-14 3:29 ` Duy Nguyen
2016-01-14 13:58 ` Mike Rappazzo
0 siblings, 1 reply; 6+ messages in thread
From: Duy Nguyen @ 2016-01-14 3:29 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Michael Rappazzo, Git Mailing List, Erik Johnson
On Thu, Jan 14, 2016 at 9:36 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Erik Johnson <palehose@gmail.com> writes:
>
>> Since upgrading to 2.7.0 last week, eventually I'll get to a point when
>> I run 'git worktree list' where several worktrees are incorrectly
>> reported as pointing to my main git checkout. Further analysis of the
>> files in $GIT_DIR/worktrees/worktree_name/ shows that the gitdir file
>> for the worktrees which display incorrectly contains ".git" instead of
>> what it should contain (i.e. "/path/to/worktree/.git".
>>
>> This was reported a couple days ago on Github:
>>
>> https://github.com/git/git-scm.com/issues/650
>>
>> Since the audiences for the mailing list and Github don't overlap
>> completely, I figured I'd report it here to get this issue in front of
>> as many eyes as possible.
>
> Thanks for relaying. Duy, Michael, I think this is your area?
The only place that a relative pat hcan be written is
update_linked_girdir() unless i'm mistaken. That function is being
deleted "soon" because it causes another problem
--
Duy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Worktree "gitdir" file being mangled after upgrade to 2.7.0
2016-01-14 3:29 ` Duy Nguyen
@ 2016-01-14 13:58 ` Mike Rappazzo
2016-01-15 17:52 ` Junio C Hamano
0 siblings, 1 reply; 6+ messages in thread
From: Mike Rappazzo @ 2016-01-14 13:58 UTC (permalink / raw)
To: Duy Nguyen; +Cc: Junio C Hamano, Git Mailing List, Erik Johnson
On Wed, Jan 13, 2016 at 10:29 PM, Duy Nguyen <pclouds@gmail.com> wrote:
> On Thu, Jan 14, 2016 at 9:36 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> Erik Johnson <palehose@gmail.com> writes:
>>
>>> Since upgrading to 2.7.0 last week, eventually I'll get to a point when
>>> I run 'git worktree list' where several worktrees are incorrectly
>>> reported as pointing to my main git checkout. Further analysis of the
>>> files in $GIT_DIR/worktrees/worktree_name/ shows that the gitdir file
>>> for the worktrees which display incorrectly contains ".git" instead of
>>> what it should contain (i.e. "/path/to/worktree/.git".
>>>
>>> This was reported a couple days ago on Github:
>>>
>>> https://github.com/git/git-scm.com/issues/650
>>>
>>> Since the audiences for the mailing list and Github don't overlap
>>> completely, I figured I'd report it here to get this issue in front of
>>> as many eyes as possible.
>>
>> Thanks for relaying. Duy, Michael, I think this is your area?
>
> The only place that a relative path can be written is
> update_linked_girdir() unless i'm mistaken. That function is being
> deleted "soon" because it causes another problem
`git worktree list` command does not modify the worktree gitdir file,
so this is only a symptom of the problem. If at all possible, we
should move to get Duy's fix into the 2.7.1 release. This problem
almost makes git worktree list useless.
> --
> Duy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Worktree "gitdir" file being mangled after upgrade to 2.7.0
2016-01-13 23:47 Worktree "gitdir" file being mangled after upgrade to 2.7.0 Erik Johnson
2016-01-14 2:36 ` Junio C Hamano
@ 2016-01-14 18:36 ` Andreas Schwab
1 sibling, 0 replies; 6+ messages in thread
From: Andreas Schwab @ 2016-01-14 18:36 UTC (permalink / raw)
To: Erik Johnson; +Cc: git
Erik Johnson <palehose@gmail.com> writes:
> Since upgrading to 2.7.0 last week, eventually I'll get to a point when
> I run 'git worktree list' where several worktrees are incorrectly
> reported as pointing to my main git checkout. Further analysis of the
> files in $GIT_DIR/worktrees/worktree_name/ shows that the gitdir file
> for the worktrees which display incorrectly contains ".git" instead of
> what it should contain (i.e. "/path/to/worktree/.git".
This always happens to me when I run "git rebase" in a worktree.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Worktree "gitdir" file being mangled after upgrade to 2.7.0
2016-01-14 13:58 ` Mike Rappazzo
@ 2016-01-15 17:52 ` Junio C Hamano
0 siblings, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2016-01-15 17:52 UTC (permalink / raw)
To: Mike Rappazzo; +Cc: Duy Nguyen, Git Mailing List, Erik Johnson
Mike Rappazzo <rappazzo@gmail.com> writes:
>>> Thanks for relaying. Duy, Michael, I think this is your area?
>>
>> The only place that a relative path can be written is
>> update_linked_girdir() unless i'm mistaken. That function is being
>> deleted "soon" because it causes another problem
>
> `git worktree list` command does not modify the worktree gitdir file,
> so this is only a symptom of the problem. If at all possible, we
> should move to get Duy's fix into the 2.7.1 release. This problem
> almost makes git worktree list useless.
Yes, what's the doneness of that "being deleted 'soon'"?
Thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-01-15 17:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-13 23:47 Worktree "gitdir" file being mangled after upgrade to 2.7.0 Erik Johnson
2016-01-14 2:36 ` Junio C Hamano
2016-01-14 3:29 ` Duy Nguyen
2016-01-14 13:58 ` Mike Rappazzo
2016-01-15 17:52 ` Junio C Hamano
2016-01-14 18:36 ` Andreas Schwab
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).