]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t7900-maintenance.sh
Merge branch 'jk/ref-paranoia'
[thirdparty/git.git] / t / t7900-maintenance.sh
index 6b4941980ca57e656a33b66828155739b5e010bd..9b9f11a8e70ed23f2eca7d000f7192e060209047 100755 (executable)
@@ -276,7 +276,7 @@ test_expect_success 'incremental-repack task' '
 
        # Delete refs that have not been repacked in these packs.
        git for-each-ref --format="delete %(refname)" \
-               refs/prefetch refs/tags >refs &&
+               refs/prefetch refs/tags refs/remotes >refs &&
        git update-ref --stdin <refs &&
 
        # Replace the object directory with this pack layout.
@@ -285,6 +285,10 @@ test_expect_success 'incremental-repack task' '
        ls $packDir/*.pack >packs-before &&
        test_line_count = 3 packs-before &&
 
+       # make sure we do not have any broken refs that were
+       # missed in the deletion above
+       git for-each-ref &&
+
        # the job repacks the two into a new pack, but does not
        # delete the old ones.
        git maintenance run --task=incremental-repack &&