Skip to content

Commit 6621a24

Browse files
zeripathSysoev, Vladimir
authored andcommitted
Add fetch.writeCommitGraph to gitconfig (go-gitea#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>
1 parent be9bbf4 commit 6621a24

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)