Change todo_lines to fixme_lines in pre-commit hook.

pull/6515/head
Todd Persen 2016-04-29 10:15:13 -07:00
parent 61cdecbe7c
commit 594f1a5ead
1 changed files with 2 additions and 2 deletions

View File

@ -16,9 +16,9 @@ exit 0
# Ensure FIXME lines are removed before commit.
fixme_lines=$(git diff --cached | grep ^+ | grep -v pre-commit | grep FIXME | sed 's_^+\s*__g')
if [ "$todo_lines" != "" ]; then
if [ "$fixme_lines" != "" ]; then
echo "Please remove the following lines:"
echo -e "$todo_lines"
echo -e "$fixme_lines"
exit 1
fi