summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 795e730)
raw | patch | inline | side by side (parent: 795e730)
author | Avery Pennarun <apenwarr@gmail.com> | |
Sun, 26 Apr 2009 22:05:49 +0000 (18:05 -0400) | ||
committer | Avery Pennarun <apenwarr@gmail.com> | |
Sun, 26 Apr 2009 22:05:49 +0000 (18:05 -0400) |
Just needed to make sure the count was non-zero.
test.sh | patch | blob | history |
index 4e00b536d719dd8dae66d561cd716c0c60622ed7..38dff7a41af25e109069ca63d44d481bd6678742 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -174,7 +174,6 @@ check_equal "$(git log --pretty=format:'%s%n%b' HEAD^2 | grep 'git-subtree.*:')"
# commits too aggressively.
joincommits()
{
- echo "hello world"
commit=
all=
while read x y; do
done
echo "$commit $all"
}
-x=0
+x=
git log --pretty=format:'commit: %H' | joincommits |
( while read commit a b; do
echo "Verifying commit $commit"
check_equal "$b" ""
- x=$(($x + 1))
+ x=1
done
- check_equal $x 23
+ check_equal "$x" 1
) || exit 1
echo