test.sh: oops, never intended to count the raw number of commits.
Just needed to make sure the count was non-zero.
Avery Pennarun committed
Apr 26, 2009 at 18:05 UTC
34a82bda7766f000ef646130ed3f6af58ca23aa2
1 file changed
+3
-4
test.sh
+3
-4
@@ -174,7 +174,6 @@ check_equal "$(git log --pretty=format:'%s%n%b' HEAD^2 | grep 'git-subtree.*:')"
174
# commits too aggressively.
175
joincommits()
176
{
177
- echo "hello world"
177
commit=
178
all=
179
while read x y; do
@@ -193,14 +192,14 @@ joincommits()
192
done
193
echo "$commit $all"
194
}
196
-x=0
195
+x=
196
git log --pretty=format:'commit: %H' | joincommits |
197
( while read commit a b; do
198
echo "Verifying commit $commit"
199
check_equal "$b" ""
201
- x=$(($x + 1))
200
+ x=1
201
done
203
- check_equal $x 23
202
+ check_equal "$x" 1
203
) || exit 1
204
205
echo