diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:16:57 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:16:57 +0900 |
commit | 3b801f7afa688c8baa11c5f117af6e020fefbfed (patch) | |
tree | 8981bee8e2d74d026054aa8873fcec2050475e2b /t/t5601-clone.sh | |
parent | 2d29e070a20e1dc9129eaaa0a308f5db609b2e3a (diff) | |
download | git-3b801f7afa688c8baa11c5f117af6e020fefbfed.tar.gz git-3b801f7afa688c8baa11c5f117af6e020fefbfed.tar.bz2 git-3b801f7afa688c8baa11c5f117af6e020fefbfed.zip |
Imported Upstream version 2.22.1upstream/2.22.1
Diffstat (limited to 't/t5601-clone.sh')
-rwxr-xr-x | t/t5601-clone.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index de9d99cf..37d76808 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -630,9 +630,8 @@ test_expect_success CASE_INSENSITIVE_FS 'colliding file detection' ' test_i18ngrep "the following paths have collided" icasefs/warning ' -partial_clone () { +partial_clone_server () { SERVER="$1" && - URL="$2" && rm -rf "$SERVER" client && test_create_repo "$SERVER" && @@ -642,8 +641,14 @@ partial_clone () { test_commit -C "$SERVER" two && HASH2=$(git hash-object "$SERVER/two.t") && test_config -C "$SERVER" uploadpack.allowfilter 1 && - test_config -C "$SERVER" uploadpack.allowanysha1inwant 1 && + test_config -C "$SERVER" uploadpack.allowanysha1inwant 1 +} +partial_clone () { + SERVER="$1" && + URL="$2" && + + partial_clone_server "${SERVER}" && git clone --filter=blob:limit=0 "$URL" client && git -C client fsck && @@ -660,6 +665,11 @@ test_expect_success 'partial clone' ' partial_clone server "file://$(pwd)/server" ' +test_expect_success 'partial clone with -o' ' + partial_clone_server server && + git clone -o blah --filter=blob:limit=0 "file://$(pwd)/server" client +' + test_expect_success 'partial clone: warn if server does not support object filtering' ' rm -rf server client && test_create_repo server && |