diff options
author | Martin von Zweigbergk <martinvonz@gmail.com> | 2012-12-21 11:10:10 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-22 19:06:35 -0800 |
commit | 5d77298d084f01a854c8aecc1709acf53d956ef8 (patch) | |
tree | 4ead32901d2e113cd03fbf58a9685bc5beac7ec6 /t/t6030-bisect-porcelain.sh | |
parent | b3cf6f3b8d21b32d88313fc709442b78300975db (diff) | |
download | git-5d77298d084f01a854c8aecc1709acf53d956ef8.tar.gz |
tests: move test_cmp_rev to test-lib-functions
A function for checking that two given parameters refer to the same
revision was defined in several places, so move the definition to
test-lib-functions.sh instead.
Signed-off-by: Martin von Zweigbergk <martinvonz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6030-bisect-porcelain.sh')
-rwxr-xr-x | t/t6030-bisect-porcelain.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh index 72e28ee535..3e0e15fb3e 100755 --- a/t/t6030-bisect-porcelain.sh +++ b/t/t6030-bisect-porcelain.sh @@ -676,9 +676,7 @@ test_expect_success 'bisect fails if tree is broken on trial commit' ' check_same() { echo "Checking $1 is the same as $2" && - git rev-parse "$1" > expected.same && - git rev-parse "$2" > expected.actual && - test_cmp expected.same expected.actual + test_cmp_rev "$1" "$2" } test_expect_success 'bisect: --no-checkout - start commit bad' ' |