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://hai...@git.sv.gnu.org/srv/git/gnulib > ! [remote rejected] master -> master (hook declined) > error: failed to push some refs to > 'ssh://hai...@git.sv.gnu.org/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.