diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-09-30 13:19:32 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-09-30 13:19:32 +0900 |
commit | 5a5350940bd5407968b158c0059938fa5cc0860e (patch) | |
tree | 590d09862ea1657b53b4abb7d75da597ed380aad /t | |
parent | Merge branch 'bw/rebase-autostash-keep-current-branch' (diff) | |
parent | fetch: add fetch.writeCommitGraph config setting (diff) | |
download | tgif-5a5350940bd5407968b158c0059938fa5cc0860e.tar.xz |
Merge branch 'ds/commit-graph-on-fetch'
A configuration variable tells "git fetch" to write the commit
graph after finishing.
* ds/commit-graph-on-fetch:
fetch: add fetch.writeCommitGraph config setting
Diffstat (limited to 't')
-rwxr-xr-x | t/t5510-fetch.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index 34b486f1a4..ecabbe1616 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -570,6 +570,19 @@ test_expect_success 'LHS of refspec follows ref disambiguation rules' ' ) ' +test_expect_success 'fetch.writeCommitGraph' ' + git clone three write && + ( + cd three && + test_commit new + ) && + ( + cd write && + git -c fetch.writeCommitGraph fetch origin && + test_path_is_file .git/objects/info/commit-graphs/commit-graph-chain + ) +' + # configured prune tests set_config_tristate () { |