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 <art27@cantab.net>
tokarchuk/v1.17
zeripath 2 years ago committed by GitHub
parent 27ba86d283
commit ea9997a9dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      modules/git/git.go

@ -238,6 +238,9 @@ func syncGitConfig() (err error) {
if err := configSet("gc.writeCommitGraph", "true"); err != nil { if err := configSet("gc.writeCommitGraph", "true"); err != nil {
return err return err
} }
if err := configSet("fetch.writeCommitGraph", "true"); err != nil {
return err
}
} }
if SupportProcReceive { if SupportProcReceive {

Loading…
Cancel
Save