diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-09 15:25:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-09 15:25:42 -0700 |
commit | 892d3fb71e75849811c038b9fcaf17188a9ccf5d (patch) | |
tree | 2e50aa84b3e7e4ce2c34b9da85c2d056c816ebd1 /t | |
parent | Merge branch 'es/rev-list-no-object-names' (diff) | |
parent | fetch: only run 'gc' once when fetching multiple remotes (diff) | |
download | tgif-892d3fb71e75849811c038b9fcaf17188a9ccf5d.tar.xz |
Merge branch 'nd/fetch-multi-gc-once'
"git fetch" that grabs from a group of remotes learned to run the
auto-gc only once at the very end.
* nd/fetch-multi-gc-once:
fetch: only run 'gc' once when fetching multiple remotes
Diffstat (limited to 't')
-rwxr-xr-x | t/t5514-fetch-multiple.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/t/t5514-fetch-multiple.sh b/t/t5514-fetch-multiple.sh index 0030c92e1a..5426d4b5ab 100755 --- a/t/t5514-fetch-multiple.sh +++ b/t/t5514-fetch-multiple.sh @@ -105,9 +105,12 @@ test_expect_success 'git fetch --multiple (two remotes)' ' git remote rm origin && git remote add one ../one && git remote add two ../two && - git fetch --multiple one two && + GIT_TRACE=1 git fetch --multiple one two 2>trace && git branch -r > output && - test_cmp ../expect output) + test_cmp ../expect output && + grep "built-in: git gc" trace >gc && + test_line_count = 1 gc + ) ' test_expect_success 'git fetch --multiple (bad remote names)' ' |