diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-10-07 11:33:02 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-07 11:33:02 +0900 |
commit | 59b19bcd9ff8193c3197fb9e2f18ce85e4f86335 (patch) | |
tree | 8d75ec24d8b962b57e8bcf7d4958d13495a3b682 /t/t0410-partial-clone.sh | |
parent | Merge branch 'jt/merge-recursive-symlink-is-not-a-dir-in-way' (diff) | |
parent | promisor-remote: skip move_to_tail when no-op (diff) | |
download | tgif-59b19bcd9ff8193c3197fb9e2f18ce85e4f86335.tar.xz |
Merge branch 'cc/multi-promisor'
Cleanup.
* cc/multi-promisor:
promisor-remote: skip move_to_tail when no-op
promisor-remote.h: drop extern from function declaration
Diffstat (limited to 't/t0410-partial-clone.sh')
-rwxr-xr-x | t/t0410-partial-clone.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t0410-partial-clone.sh b/t/t0410-partial-clone.sh index 1e389c049a..a3988bd4b8 100755 --- a/t/t0410-partial-clone.sh +++ b/t/t0410-partial-clone.sh @@ -429,6 +429,19 @@ test_expect_success 'rev-list dies for missing objects on cmd line' ' done ' +test_expect_success 'single promisor remote can be re-initialized gracefully' ' + # ensure one promisor is in the promisors list + rm -rf repo && + test_create_repo repo && + test_create_repo other && + git -C repo remote add foo "file://$(pwd)/other" && + git -C repo config remote.foo.promisor true && + git -C repo config extensions.partialclone foo && + + # reinitialize the promisors list + git -C repo fetch --filter=blob:none foo +' + test_expect_success 'gc repacks promisor objects separately from non-promisor objects' ' rm -rf repo && test_create_repo repo && |