2016-10-09 13:37 GMT+02:00 Duy Nguyen :
> On Sun, Oct 9, 2016 at 6:22 PM, Stéphane Klein
> wrote:
>> 2016-10-09 13:11 GMT+02:00 Duy Nguyen :
>>>> Why:
>>>>
>>>> 1. I configure worktree on my host
>>>> 2. next I use this git working copy
2016-10-09 13:11 GMT+02:00 Duy Nguyen :
>> * [worktree_foobar]/.git
> This is made absolute on purpose. So that if you move worktree_foobar
> away manually, it can still point back to
> "[main_worktree]/.git/worktrees/[woktree_foobar]".
Same problem if you move origin git repository.
>
>> Why:
>
I've write a small tool in Golang to fix this issue:
https://github.com/harobed/fix-git-worktree
2016-10-08 11:35 GMT+02:00 Stéphane Klein :
> Hi,
>
> "git worktree add" write absolute path in ".git/gitdir"
>
> The code source is here
> https://g
ktree_foobar]/gitdir
* [worktree_foobar]/.git
Why:
1. I configure worktree on my host
2. next I use this git working copy in Docker with volume share
3. next I've some git error in Docker because config files use absolute path
Best regards,
Stéphane
--
Stéphane Klein
blog: http://stephane-klein.inf
4 matches
Mail list logo