]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6100-rev-list-in-order.sh
Merge branch 'es/test-cmp-typocatcher'
[thirdparty/git.git] / t / t6100-rev-list-in-order.sh
index b2bb0a7f61814fc0f07899ef9c138374e7b81140..e934bc239c534d5da532c28d520732475859b665 100755 (executable)
@@ -22,7 +22,7 @@ test_expect_success 'setup a commit history with trees, blobs' '
 
 test_expect_success 'rev-list --in-commit-order' '
        git rev-list --in-commit-order --objects HEAD >actual.raw &&
-       cut -c 1-40 >actual <actual.raw &&
+       cut -d" " -f1 >actual <actual.raw &&
 
        git cat-file --batch-check="%(objectname)" >expect.raw <<-\EOF &&
                HEAD^{commit}
@@ -49,7 +49,7 @@ test_expect_success 'rev-list --in-commit-order' '
 
 test_expect_success 'rev-list lists blobs and trees after commits' '
        git rev-list --objects HEAD >actual.raw &&
-       cut -c 1-40 >actual <actual.raw &&
+       cut -d" " -f1 >actual <actual.raw &&
 
        git cat-file --batch-check="%(objectname)" >expect.raw <<-\EOF &&
                HEAD^{commit}