git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git submodule vs GIT_WORK_TREE
@ 2012-06-26 12:28 Richard Hartmann
  2012-06-26 16:07 ` Junio C Hamano
  0 siblings, 1 reply; 13+ messages in thread
From: Richard Hartmann @ 2012-06-26 12:28 UTC (permalink / raw)
  To: Git List

Hi all,

vcsh [1] has had an open bug[2] filed against it for some time now. I
came to the conclusion that I can not properly work around this within
the scope of vcsh so I am hoping for help on this list.

As you are most likely aware, `git submodule` allows you to access a
separate git repository in a sub-directory, e.g. $submodule, while
$GIT_WORK_TREE forces git to operate in a specific directory. Combine
the two and the result is less than ideal. git is forced to operate in
$GIT_WORK_TREE while it should operate on $GIT_WORK_TREE/$submodule,
instead.

I think there are two options, here:

* Make git append $submodule to $GIT_WORK_TREE, i.e. operate on
$GIT_WORK_TREE/$submodule
* Introduce $GIT_WORK_TREE_RELATIVE which allows submodule and
potentially other commands to append to it


Did I miss another option? Would anyone be willing to fix/implement this?


Thanks,
Richard

[1] https://github.com/RichiH/vcsh
[2] https://github.com/RichiH/vcsh/issues/27

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

end of thread, other threads:[~2012-07-02  8:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-26 12:28 git submodule vs GIT_WORK_TREE Richard Hartmann
2012-06-26 16:07 ` Junio C Hamano
2012-06-26 18:27   ` Jens Lehmann
2012-06-26 19:51     ` Junio C Hamano
2012-06-26 22:30       ` Jens Lehmann
2012-06-26 22:53         ` Junio C Hamano
2012-06-29  8:43           ` Richard Hartmann
2012-06-29 20:03             ` Junio C Hamano
2012-06-29 20:23               ` Junio C Hamano
2012-06-29 21:03               ` Junio C Hamano
2012-07-01 10:34                 ` Richard Hartmann
2012-07-02  8:22                   ` Junio C Hamano
2012-06-29  9:10     ` Richard Hartmann

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