Merge "Fix wrong check for empty files"

This commit is contained in:
Jenkins 2014-09-29 06:55:13 +00:00 committed by Gerrit Code Review
commit 2bb19f20ca

View File

@ -290,7 +290,7 @@ function filter_commits ()
for f in `git diff --cached --name-only --diff-filter=A`
do
# Files should have at least one non-empty msgid string.
if grep -q 'msgid "[^"]' "$f" ; then
if ! grep -q 'msgid "[^"]' "$f" ; then
git reset -q "$f"
rm "$f"
fi