Permalink
Browse files

scripts/blame: fix lost exit status

  • Loading branch information...
grawity committed Jan 17, 2014
1 parent 4972d92 commit 5d6ce30db7bc9a1b7d7f2912130c1c44a457f1b3
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/blame
View
@@ -24,7 +24,8 @@ range=$old..$new
workdir=$(mktemp -d /tmp/blame.XXXXXXXX)
git clone -q -s "$repodir" "$workdir"
-git rev-list "$range" | while read commit; do
+while read commit; do
+ echo "checking $commit"
(cd "$workdir" && git checkout -q -f "$commit")
if ! output=$(cd "$workdir" && scripts/check 2>&1); then
author=$(git show -s --format='%aE' "$commit")
@@ -61,7 +62,7 @@ git rev-list "$range" | while read commit; do
status=1
break
fi
-done
+done < <(git rev-list "$range")
rm -rf "$workdir"

0 comments on commit 5d6ce30

Please sign in to comment.