Skip to content

Commit ea9997a

Browse files
authored
Add fetch.writeCommitGraph to gitconfig (#20006)
Add fetch.writeCommitGraph to gitconfig to ensure that a commit-graph will be written on git fetch calls. Signed-off-by: Andrew Thornton <[email protected]>
1 parent 27ba86d commit ea9997a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/git/git.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ func syncGitConfig() (err error) {
238238
if err := configSet("gc.writeCommitGraph", "true"); err != nil {
239239
return err
240240
}
241+
if err := configSet("fetch.writeCommitGraph", "true"); err != nil {
242+
return err
243+
}
241244
}
242245

243246
if SupportProcReceive {

0 commit comments

Comments
 (0)