* local git push bug wrt GIT_OBJECT_DIRECTORY
@ 2005-12-30 6:08 Matt Draisey
2006-01-06 22:36 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Matt Draisey @ 2005-12-30 6:08 UTC (permalink / raw)
To: git
Using git-send-pack to push to a local repository will propagate the
environment variable GIT_OBJECT_DIRECTORY to git-receive-pack.
git-receive-pack correctly ignores GIT_DIR (as opposed to what the
documentation says) but, unfortunately, honours GIT_OBJECT_DIRECTORY.
It's not clear to me whether the correct behaviour is for git-send-pack
to clean up its environment before it execs or for git-receive-pack to
ignore most GIT variables.
Interposing a short script with env -i or env -uGIT_OBJECT_DIRECTORY is
the easiest workaround.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: local git push bug wrt GIT_OBJECT_DIRECTORY
2005-12-30 6:08 local git push bug wrt GIT_OBJECT_DIRECTORY Matt Draisey
@ 2006-01-06 22:36 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-01-06 22:36 UTC (permalink / raw)
To: Matt Draisey; +Cc: git
Matt Draisey <matt@draisey.ca> writes:
> Using git-send-pack to push to a local repository will propagate the
> environment variable GIT_OBJECT_DIRECTORY to git-receive-pack.
> git-receive-pack correctly ignores GIT_DIR (as opposed to what the
> documentation says) but, unfortunately, honours GIT_OBJECT_DIRECTORY.
Thanks for noticing.
True; receive-pack does not "ignore", but is explicitly told to
use the other repository by invoking send-pack.
> It's not clear to me whether the correct behaviour is for git-send-pack
> to clean up its environment before it execs or for git-receive-pack to
> ignore most GIT variables.
Probably GIT_OBJECT_DIRECTORY should not be propagated;
GIT_ALTERNATE_OBJECT_DIRECTORIES neither.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-06 22:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-30 6:08 local git push bug wrt GIT_OBJECT_DIRECTORY Matt Draisey
2006-01-06 22:36 ` Junio C Hamano
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).