[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: overly zealous git hook
From: |
Jim Meyering |
Subject: |
Re: overly zealous git hook |
Date: |
Tue, 21 Jul 2009 10:51:09 +0200 |
Bruno Haible wrote:
> # "git diff --check" should not reject modules files which end in a blank
> line.
> * whitespace=-trail
> ===============================================================================
>
> But "git push" is now still rejected:
>
> modules/pipe-filter:34: ends with blank lines.
> error: hooks/update exited with error code 2
> error: hook declined to update refs/heads/master
> To ssh://address@hidden/srv/git/gnulib
> ! [remote rejected] master -> master (hook declined)
> error: failed to push some refs to 'ssh://address@hidden/srv/git/gnulib'
>
> Why does the "git diff --check" on the server side not take into account the
> modules/.gitattributes?
The only exclusion I've made has been on the server side:
# cd /.../gnulib.git
# cat info/attributes
build-aux/texinfo.tex -whitespace
With a new-enough version of git, you can experiment/debug
by pushing to a local, test repository.