]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6000-rev-list-misc.sh
Merge branch 'jk/object-filter-with-bitmap'
[thirdparty/git.git] / t / t6000-rev-list-misc.sh
index 383f2c457d4137ad16f5b49424f094aded12e74c..3dc1ad8f719926140ce31a9528c8f870977484b1 100755 (executable)
@@ -104,13 +104,16 @@ test_expect_success 'rev-list can show index objects' '
        #   - we do not show the root tree; since we updated the index, it
        #     does not have a valid cache tree
        #
-       cat >expect <<-\EOF &&
-       8e4020bb5a8d8c873b25de15933e75cc0fc275df one
-       d9d3a7417b9605cfd88ee6306b28dadc29e6ab08 only-in-index
-       9200b628cf9dc883a85a7abc8d6e6730baee589c two
-       EOF
        echo only-in-index >only-in-index &&
        test_when_finished "git reset --hard" &&
+       rev1=$(git rev-parse HEAD:one) &&
+       rev2=$(git rev-parse HEAD:two) &&
+       revi=$(git hash-object only-in-index) &&
+       cat >expect <<-EOF &&
+       $rev1 one
+       $revi only-in-index
+       $rev2 two
+       EOF
        git add only-in-index &&
        git rev-list --objects --indexed-objects >actual &&
        test_cmp expect actual