Re: [PATCH] Add ability to specify environment extension to run_command
- From
- Sven Verdoolaege <skimo@kotnet.org>
- Date
- May 22, 2007, 06:54 UTC
- Message-ID
- <20070522065427.GS942MdfPADPa@greensroom.kotnet.org>
- In-Reply-To
- <20070522063821.GE11636@spearce.org>
On Tue, May 22, 2007 at 02:38:22AM -0400, Shawn O. Pearce wrote:
Show 7 quoted lines
> I thought this thread all started because we wanted to run a > command in a subproject, and did not want the parent's GIT_* > environment variables to confuse the subproject process when > it started. That's a pretty simple concept: clear any GIT_* > environment variable that can change behavior in the subproject. > And almost everyone who is trying to use this API and alter the > env wants exactly that - a subproject command.
This would work for me, I suppose. Right now, I sometimes set GIT_DIR explicitly, but I could just chdir (or use --git-dir=).
skimo