Re: commit with exit code 255
From: Ryan Schmidt <subversion-2012a_at_ryandesign.com>
Date: Sun, 17 Jun 2012 15:11:19 -0500
On Jun 17, 2012, at 12:10, Nico Kadel-Garcia wrote:
> On Jun 17, 2012, at 08:41, Chris Stäbler wrote:
Nico, I think Chris knows that. He's trying to verify that a simple test pre-commit hook script prints the error message he wrote ("something for the output") and exits with the error code he specified (1). From the output he showed above, neither is happening; it prints no output, and it exits with code 255. He's asking why that's happening.
Chris, I get the same result as you, if I forget to mark the pre-commit hook script as executable. So try "chmod 755 /path/to/repo/hooks/pre-commit", then try again.
Also, not sure if it was a copy/paste error with your email program, but the script you showed above contains smart quotes (“”); for a bash script, you'll want to use straight quotes ("").
|
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.