Re: Commit f5bbc322 to git broke pre-commit hooks which read stdin

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Tuesday, March 4, 2008 - 5:17 am

Johannes Sixt <j.sixt@viscovery.net> writes:


I am saying that scripted version left the stdin as-is but somehow we
ended up spawning with .no_stdin = 1 in the C-rewrite, which is a change
in established behaviour.  It is often called a regression, unless the
change has a very good reason.  And I tend to think this particular one
falls into the former.

We should audit how the hooks are called from various commands
re-implemented, comparing the environment the scripted version used to
give them, which includes:

 - what directory the hook is run in;
 - what environment variables are exported to it;
 - what temporary files are visible to them for inspection;
 - in what order they are run;
 - which file descriptor is connected to what;

I think we already caught some of the environment and ordering issues in
commit and checkout, but I am far from confident to say that what we have
behave identically to the scripted version.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Commit f5bbc322 to git broke pre-commit hooks which re ..., Johannes Schindelin, (Tue Mar 4, 3:45 am)
Re: Commit f5bbc322 to git broke pre-commit hooks which re ..., Johannes Schindelin, (Tue Mar 4, 5:03 am)
Re: Commit f5bbc322 to git broke pre-commit hooks which re ..., Johannes Schindelin, (Tue Mar 4, 5:04 am)
Re: Commit f5bbc322 to git broke pre-commit hooks which re ..., Junio C Hamano, (Tue Mar 4, 5:17 am)