revision: tolerate promised targets of tags
[gitweb.git] / t / t5300-pack-object.sh
index 87a590c4a952d743c2d9f8b0daac76d448f51e8e..2336d09dcc45f3b808c5e5d6a7c43c8129e8cecc 100755 (executable)
@@ -421,6 +421,12 @@ test_expect_success 'index-pack <pack> works in non-repo' '
        test_path_is_file foo.idx
 '
 
+test_expect_success 'index-pack --strict <pack> works in non-repo' '
+       rm -f foo.idx &&
+       nongit git index-pack --strict ../foo.pack &&
+       test_path_is_file foo.idx
+'
+
 test_expect_success !PTHREADS,C_LOCALE_OUTPUT 'index-pack --threads=N or pack.threads=N warns when no pthreads' '
        test_must_fail git index-pack --threads=2 2>err &&
        grep ^warning: err >warnings &&