t5318: use 'test_cmp_bin' to compare commit-graph files
[gitweb.git] / t / t5318-commit-graph.sh
index 5947de3d2438ea301e33f2fc3430ee703d1436b9..04516d64650c1c3e71a64c6612754e7ad0333e7b 100755 (executable)
@@ -254,9 +254,9 @@ test_expect_success 'check that gc computes commit-graph' '
        git config gc.writeCommitGraph true &&
        git gc &&
        cp $objdir/info/commit-graph commit-graph-after-gc &&
-       ! test_cmp commit-graph-before-gc commit-graph-after-gc &&
+       ! test_cmp_bin commit-graph-before-gc commit-graph-after-gc &&
        git commit-graph write --reachable &&
-       test_cmp commit-graph-after-gc $objdir/info/commit-graph
+       test_cmp_bin commit-graph-after-gc $objdir/info/commit-graph
 '
 
 # the verify tests below expect the commit-graph to contain