git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Feature request: use relative path in worktree config files
@ 2016-10-08  9:35 Stéphane Klein
  2016-10-08 19:54 ` Stéphane Klein
  2016-10-09 11:11 ` Duy Nguyen
  0 siblings, 2 replies; 8+ messages in thread
From: Stéphane Klein @ 2016-10-08  9:35 UTC (permalink / raw)
  To: git

Hi,

"git worktree add" write absolute path in ".git/gitdir"

The code source is here
https://git.kernel.org/cgit/git/git.git/tree/builtin/worktree.c?h=v2.10.1#n256

Is it possible to use relative path in this config files:

* [main_worktree]/.git/worktrees/[worktree_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 <contact@stephane-klein.info>
blog: http://stephane-klein.info
cv : http://cv.stephane-klein.info
Twitter: http://twitter.com/klein_stephane

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

end of thread, other threads:[~2016-10-11 11:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-08  9:35 Feature request: use relative path in worktree config files Stéphane Klein
2016-10-08 19:54 ` Stéphane Klein
2016-10-09 11:11 ` Duy Nguyen
2016-10-09 11:22   ` Stéphane Klein
2016-10-09 11:37     ` Duy Nguyen
2016-10-09 11:39       ` Stéphane Klein
2016-10-10 18:36       ` Junio C Hamano
2016-10-11 11:16         ` Duy Nguyen

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).