git: Tralining whitespace error during commit
I'm using git more and more. However, when checking in code, I sometimes get an error about trailing whitespace and the commit fails.
To fix this:
in .git/hooks/pre-commit, delete the following lines:
if (/\s$/) {
bad_line("trailing whitespace", $_);
}
To fix this:
in .git/hooks/pre-commit, delete the following lines:
if (/\s$/) {
bad_line("trailing whitespace", $_);
}
Mangled by ScribeFire and fixed by hand.
Labels: OpenSource, Programming
Post a Comment