Imported Upstream version 2.20.0
[platform/upstream/git.git] / t / t5607-clone-bundle.sh
index 348d9b3..cf39e9e 100755 (executable)
@@ -71,4 +71,10 @@ test_expect_success 'prerequisites with an empty commit message' '
        git bundle verify bundle
 '
 
+test_expect_success 'failed bundle creation does not leave cruft' '
+       # This fails because the bundle would be empty.
+       test_must_fail git bundle create fail.bundle master..master &&
+       test_path_is_missing fail.bundle.lock
+'
+
 test_done