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

Bill Lorensen bill.lorensen at gmail.com
Tue Jan 11 17:47:48 EST 2011


I think you need to provide a files name to the git commit unless you
do git commit -a (which commits all modified files).

So
git commit foo.txx
or
git commit -a

Bill

On Tue, Jan 11, 2011 at 5: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