git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Running commands in wrong environment
@ 2009-12-03 19:19 Marinescu Paul dan
  2009-12-04 10:44 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Marinescu Paul dan @ 2009-12-03 19:19 UTC (permalink / raw)
  To: git@vger.kernel.org


git's start_command (run_command.c) executes a command (e.g. hook) but does not verify that it has properly set up the environment. It seems that in the unlikely case where putenv (run_command.c:117) fails, the command may have undesirable effects e.g. GIT_INDEX_FILE should have been set (interactive pre-commit hooks) but the default index will be used instead. It would be safer not to run the command but just exit in that case.

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

end of thread, other threads:[~2009-12-06 14:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03 19:19 Running commands in wrong environment Marinescu Paul dan
2009-12-04 10:44 ` Jeff King
2009-12-04 17:16   ` Junio C Hamano
2009-12-06 14:38     ` Jeff King

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