convert.c: ident + core.autocrlf didn't work
[gitweb.git] / t / t5700-clone-reference.sh
index 2250ef4fe245bda17328d46844a4caf49fbde8d9..4320082b1b8fe709e9462f84d15fec63c54a94d4 100755 (executable)
@@ -6,7 +6,7 @@
 test_description='test clone --reference'
 . ./test-lib.sh
 
-base_dir=`pwd`
+base_dir=$(pwd)
 
 U=$base_dir/UPLOAD_LOG
 
@@ -210,4 +210,15 @@ test_expect_success 'clone, dissociate from partial reference and repack' '
        test_line_count = 1 packs.txt
 '
 
+test_expect_success 'clone, dissociate from alternates' '
+       rm -fr A B C &&
+       test_create_repo A &&
+       commit_in A file1 &&
+       git clone --reference=A A B &&
+       test_line_count = 1 B/.git/objects/info/alternates &&
+       git clone --local --dissociate B C &&
+       ! test -f C/.git/objects/info/alternates &&
+       ( cd C && git fsck )
+'
+
 test_done