[Insight-developers] Which hook is really stopping me to commit and why?
Matthew McCormick (thewtex)
matt at mmmccormick.com
Tue Jan 11 17:45:09 EST 2011
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