Subversion Hook succeeds inconsistently (very strange)
From: Bradley Molander <Bradley.Molander_at_nisc.coop>
Date: 2006-09-06 04:41:19 CEST
Apparently, with most commits through the dav connector, a newline is being appended. Subversion pre-commit hook nearly always fails because of this even when the only text in the file is:
------------
We have been using subversion for 18 months with no problems. Once we upgraded to 1.3, the dav connector more often than not reports a hook error when there isn't one (using above script). Sometimes, it passes, but usually not (~ 10 failures to every success). If we use svnserve, the hook works properly (so do our normal hooks).
What could cause this? In the apache log I see:
The '\n' seems to be tripping the connector into thinking the script failed. Not sure where it even came from. Is this a neon problem? Race?
System:
Any ideas?
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.