gitx icon indicating copy to clipboard operation
gitx copied to clipboard

pre-commit hook failed

Open denmarkin opened this issue 13 years ago • 1 comments

I have a pre-commit hook:

 rake find_mass_assignment

That's all I have here and it works just fine from the console. When using GitX (tried 0.7.1 and 0.8.1), it simply sayd "Pre-commit hook failed" even rake task exists with "0". When I try to commit the same file change within command line, it works fine.

I assume it incorrectly interprets hook exit result.

denmarkin avatar Apr 11 '11 12:04 denmarkin

Are you sure the pre-commit hook exits with 0 when invoked from GitX? How did you check that?

Ultimately, it could break because your rake script might expect to have a tty available whereas GitX might invoked detached from any tty... (Pure suppositions here, though, so this is to be taken with a grain of salt)

RomainMuller avatar May 06 '11 23:05 RomainMuller