Re: Feature request: use relative path in worktree config files

2016-10-09 Thread Stéphane Klein
2016-10-09 13:37 GMT+02:00 Duy Nguyen <pclo...@gmail.com>: > On Sun, Oct 9, 2016 at 6:22 PM, Stéphane Klein > <cont...@stephane-klein.info> wrote: >> 2016-10-09 13:11 GMT+02:00 Duy Nguyen <pclo...@gmail.com>: >>>> Why: >>>> >>>&

Re: Feature request: use relative path in worktree config files

2016-10-09 Thread Stéphane Klein
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

Re: Feature request: use relative path in worktree config files

2016-10-08 Thread Stéphane Klein
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 <cont...@stephane-klein.info>: > Hi, > > "git worktree add" write absolute path in ".git/gitdir" > > The code source

Feature request: use relative path in worktree config files

2016-10-08 Thread Stéphane Klein
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 <cont...@stephane-klein.info> blog: