Merge branch 'jc/push-2.0-default-to-simple'
[gitweb.git] / t / t5601-clone.sh
index 62fbd7e6649d9215528a83249f1b46735de2237d..5e67035be800b5cbec5a99dd9e3e458a343440df 100755 (executable)
@@ -430,4 +430,11 @@ test_expect_success 'clone from a repository with two identical branches' '
 
 '
 
+test_expect_success 'shallow clone locally' '
+       git clone --depth=1 --no-local src ssrrcc &&
+       git clone ssrrcc ddsstt &&
+       test_cmp ssrrcc/.git/shallow ddsstt/.git/shallow &&
+       ( cd ddsstt && git fsck )
+'
+
 test_done