mirror of
https://github.com/git/git.git
synced 2026-04-11 01:10:11 +02:00
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
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user