Can't push to `wip/...` branches because of pre-commit check
I made some edits on my wip/rae branch and tried to push to the remote wip/rae branch. But I see this:
11:42:05 ~/Documents/Programming/ghc-cur> git push -u origin wip/rae --force
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 580 bytes | 0 bytes/s, done.
Total 5 (delta 4), reused 0 (delta 0)
remote: performing tab-check...
remote: Error: you may not add a line containing a tab to these tab-free files:
remote: testsuite/tests/rename/should_fail/Makefile
To ssh://git@git.haskell.org/ghc.git
! [remote rejected] wip/rae -> wip/rae (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@git.haskell.org/ghc.git'
There are two problems here:
- I didn't change
testsuite/tests/rename/should_fail/Makefile! -
Makefiles like having tabs in them.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.8.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Trac & Git |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |