gitx
gitx copied to clipboard
pre-commit hook failed
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.
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)