git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* packObjectsHook and the git executable
@ 2020-01-30  1:00 Bryan Turner
  2020-01-30  7:11 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Bryan Turner @ 2020-01-30  1:00 UTC (permalink / raw)
  To: Git Users

In upload-pack.c, when Git invokes the packObjectsHook, it's
hard-coded to pass "git". Unless it modifies the PATH environment
variable, though, if the script were to invoke the provided command
line as-is, it may end up running a different version of Git than the
version being used to run upload-pack (or http-backend).

Is there any way the packObjectsHook could be passed the "right" git
executable? Or am I missing some surrounding context that means
executing "git" is somehow guaranteed to invoke the "right" binary?
(Perhaps this same PATH-related caveat applies to other places where
Git invokes itself recursively?)

Grateful for any insight!
Bryan

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

end of thread, other threads:[~2020-01-30  8:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30  1:00 packObjectsHook and the git executable Bryan Turner
2020-01-30  7:11 ` Jeff King
2020-01-30  7:38   ` Bryan Turner
2020-01-30  8:23     ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).