diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2009-04-26 18:05:49 -0400 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2009-04-26 18:05:49 -0400 |
commit | 34a82bda7766f000ef646130ed3f6af58ca23aa2 (patch) | |
tree | 4ee1cb2029979051485f624ea9ac07351f0051bc | |
parent | Simplify merges even more aggressively. (diff) | |
download | tgif-34a82bda7766f000ef646130ed3f6af58ca23aa2.tar.xz |
test.sh: oops, never intended to count the raw number of commits.
Just needed to make sure the count was non-zero.
-rwxr-xr-x | test.sh | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 @@ -193,14 +192,14 @@ joincommits() 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 |