commit - b2d03dc5144c84f83c964b09bb42e403cd38c46d45ca3c82712b58dcf22611b8
commit + 500a56c373b32d1b30daa7bcef127b81b59bf8d504f4c627143f9db2278b8cac
blob - 0cef34ecd4d8443662062bd91ba16202e4b92eb166d8b2bcf14bc97bea072f3d
blob + 1a8e5fb655c9c9bc8d559c174d7bb54b997daf8d45bf6e74919f83b127e879cc
--- regress/cmdline/clone.sh
+++ regress/cmdline/clone.sh
. ./common.sh
+got_base_config="[core]
+ repositoryformatversion = 0
+ filemode = true
+ bare = true"
+if [ "$GOT_TEST_ALGO" = sha256 ]; then
+ got_base_config="[core]
+ repositoryformatversion = 1
+ filemode = true
+ bare = true
+[extensions]
+ objectformat = sha256"
+fi
+
test_clone_basic() {
local testroot=`test_init clone_basic`
local testurl=ssh://127.0.0.1/$testroot
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = ssh://127.0.0.1$testroot/repo
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = ssh://127.0.0.1$testroot/repo
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = ssh://127.0.0.1$testroot/repo
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = ssh://127.0.0.1$testroot/repo
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = ssh://127.0.0.1$testroot/repo
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = ssh://127.0.0.1$testroot/repo
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = ssh://127.0.0.1$testroot/repo
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = ssh://127.0.0.1$testroot/repo
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = ssh://127.0.0.1$testroot/repo
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = ssh://127.0.0.1$testroot/repo
fi
cat > $testroot/config.expected <<EOF
-[core]
- repositoryformatversion = 0
- filemode = true
- bare = true
+$got_base_config
[remote "origin"]
url = $testurl/repo
}
test_parseargs "$@"
-run_test test_clone_basic no-sha256
-run_test test_clone_quoting no-sha256
-run_test test_clone_list no-sha256
-run_test test_clone_branch no-sha256
-run_test test_clone_all no-sha256
-run_test test_clone_mirror no-sha256
-run_test test_clone_mirror_all no-sha256
-run_test test_clone_reference no-sha256
-run_test test_clone_branch_and_reference no-sha256
-run_test test_clone_reference_mirror no-sha256
-run_test test_clone_multiple_branches no-sha256
-run_test test_clone_dangling_headref no-sha256
-run_test test_clone_basic_http no-sha256
+run_test test_clone_basic
+run_test test_clone_quoting
+run_test test_clone_list
+run_test test_clone_branch
+run_test test_clone_all
+run_test test_clone_mirror
+run_test test_clone_mirror_all
+run_test test_clone_reference
+run_test test_clone_branch_and_reference
+run_test test_clone_reference_mirror
+run_test test_clone_multiple_branches
+run_test test_clone_dangling_headref
+run_test test_clone_basic_http