summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-09-30 13:19:32 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-09-30 13:19:32 +0900
commit5a5350940bd5407968b158c0059938fa5cc0860e (patch)
tree590d09862ea1657b53b4abb7d75da597ed380aad /t
parentMerge branch 'bw/rebase-autostash-keep-current-branch' (diff)
parentfetch: add fetch.writeCommitGraph config setting (diff)
downloadtgif-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-xt/t5510-fetch.sh13
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 () {