[Insight-developers] Which hook is really stopping me to commit and why?

Arnaud GELAS arnaud_gelas at hms.harvard.edu
Tue Jan 11 18:04:02 EST 2011


Matt,

thanks for the tip!

Now at least, I know at which step I am stopped  :-)

+ .git/hooks/gerrit/commit-msg .git/COMMIT_EDITMSG
: No such file or directory
+ die 'gerrit/commit-msg failed'

I have tried to add set -x in gerrit/commit-msg, nothing shows up...

How can I get the same level of verbosity for this hook (to debug what's 
going on)?

Thanks,
Arnaud

On 01/11/2011 05:45 PM, Matthew McCormick (thewtex) wrote:
> Hi Arnaud,
>
> A helpful way to debug the problem may be to insert 'set -x'  near the
> top of the file '.git/hooks/commit-msg'.
>
> Regards,
> Matt
>
> On Tue, Jan 11, 2011 at 4:34 PM, Arnaud GELAS
> <arnaud_gelas at hms.harvard.edu>  wrote:
>> Hi all,
>>
>> I am trying to do a local commit (then I'll submit one patch to gerrit).
>> It seems some hooks are blocking me, but I can't figure out exactly what's
>> going on...
>>
>> Here is the message:
>>
>> $ git commit
>> : No such file or directory
>> commit-msg hook failure
>> -----------------------
>>
>> gerrit/commit-msg failed
>>
>> To continue editing, run the command
>>   git commit -e -F .git/COMMIT_MSG
>> (assuming your working directory is at the top).
>>
>>
>>
>> I don't understand the line ": No such file or directory". Any idea?
>>
>> What am I doing wrong?
>>
>> Also note that .git/COMMIT_MSG does not exist, but is called
>> .git/COMMIT_EDITMSG (and this may be updated in the die function of the
>> hooks).
>>
>>
>> Thanks,
>> Arnaud
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>>



More information about the Insight-developers mailing list