1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-05 16:52:59 +01:00

test.sh: oops, never intended to count the raw number of commits.

Just needed to make sure the count was non-zero.
This commit is contained in:
Avery Pennarun 2009-04-26 18:05:49 -04:00
parent 795e730e71
commit 34a82bda77

View file

@ -174,7 +174,6 @@ check_equal "$(git log --pretty=format:'%s%n%b' HEAD^2 | grep 'git-subtree.*:')"
# commits too aggressively. # commits too aggressively.
joincommits() joincommits()
{ {
echo "hello world"
commit= commit=
all= all=
while read x y; do while read x y; do
@ -193,14 +192,14 @@ joincommits()
done done
echo "$commit $all" echo "$commit $all"
} }
x=0 x=
git log --pretty=format:'commit: %H' | joincommits | git log --pretty=format:'commit: %H' | joincommits |
( while read commit a b; do ( while read commit a b; do
echo "Verifying commit $commit" echo "Verifying commit $commit"
check_equal "$b" "" check_equal "$b" ""
x=$(($x + 1)) x=1
done done
check_equal $x 23 check_equal "$x" 1
) || exit 1 ) || exit 1
echo echo