Skip to content

Commit 1404130

Browse files
zeripathAbdulrhmnGhanem
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 <[email protected]>
1 parent dee1a92 commit 1404130

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)