Re: [PATCH] Export GIT_DIR after setting it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"martin f. krafft" <madduck@xxxxxxxxxxx> writes:

> The only problem I see now is when an external command (or the shell
> script) can't properly deal with GIT_DIR being set, but then that's
> a whole different bug.

One thing that we did not have to worry about when git-sh-setup was
invented is GIT_WORK_TREE and its cousin core.worktree.  When the user
uses GIT_DIR _but_ wants to work from a subdirectory of the checked out
work tree, the user _must_ tell git where the top of the work tree is; in
other words, setting and exporting only GIT_DIR is a misconfiguration.

I have a suspicion that "the whole different bug" is what bit you --
perhaps some places need to also set and export GIT_WORK_TREE as well when
the do GIT_DIR.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux