summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7b438f6)
raw | patch | inline | side by side (parent: 7b438f6)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 7 Dec 2011 14:49:29 +0000 (08:49 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Dec 2011 21:37:07 +0000 (13:37 -0800) |
The rev-list output in this test depends on the details of test_tick's
dummy dates and the choice of hash function. Worse, it depends on the
order and nature of commits made in the earlier tests, so adding new
tests or rearranging existing ones breaks it.
It would be nice to check that "git commit" and commit-tree name
objects consistently and that commit objects' text is as documented,
but this particular test checks everything at once and hence is not a
robust test for that. Remove it.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dummy dates and the choice of hash function. Worse, it depends on the
order and nature of commits made in the earlier tests, so adding new
tests or rearranging existing ones breaks it.
It would be nice to check that "git commit" and commit-tree name
objects consistently and that commit objects' text is as documented,
but this particular test checks everything at once and hence is not a
robust test for that. Remove it.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7501-commit.sh | patch | blob | history |
diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index da75abc1bf9adc8a9528d514ce9813f20303d01f..9c507b082157b34aa3ee8eee18957685e9aaac39 100755 (executable)
--- a/t/t7501-commit.sh
+++ b/t/t7501-commit.sh
git diff >diff2 &&
test_cmp diff1 diff2"
-test_expect_success \
- "showing committed revisions" \
- "git rev-list HEAD >current"
-
cat >editor <<\EOF
#!/bin/sh
sed -e "s/good/bad/g" < "$1" > "$1-"
echo "Another good message." | EDITOR=./editor git commit -a -F - &&
git show -s --pretty=format:"%s" | grep -q good
'
-# We could just check the head sha1, but checking each commit makes it
-# easier to isolate bugs.
-
-cat >expected <<\EOF
-285fcf7ec0d61b14249dfdb4c1e1fe03eaf15ee0
-0b8148b9afce917b87d71199b900466dc8ea8b6e
-43fb8826314939ce79a856face7953557fdca3d1
-eaa04bc3ae0f0b003f7f1d86bf869ec5d73eaf3e
-ee1963b250ee0f02a3fe37be0e4a02bb5af6a1ad
-b49f306003c627361a0304d151a6b4c8b26af6a1
-402702b49136e7587daa9280e91e4bb7cb2179f7
-EOF
-
-test_expect_success \
- 'validate git rev-list output.' \
- 'test_cmp expected current'
test_expect_success 'partial commit that involves removal (1)' '