]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t4045: make hash-size independent
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 28 Oct 2019 00:59:06 +0000 (00:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Oct 2019 02:34:58 +0000 (11:34 +0900)
Replace a hard-coded all-zeros object ID with a use of $ZERO_OID.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4045-diff-relative.sh

index 36f8ed8a818714abc234ca940a59693f4be21046..258808708e1093819a32e68dfc76b6faf506f388 100755 (executable)
@@ -70,7 +70,7 @@ check_raw () {
        expect=$1
        shift
        cat >expected <<-EOF
-       :000000 100644 0000000000000000000000000000000000000000 $blob A $expect
+       :000000 100644 $ZERO_OID $blob A        $expect
        EOF
        test_expect_success "--raw $*" "
                git -C '$dir' diff --no-abbrev --raw $* HEAD^ >actual &&