Skip to content

Commit

Permalink
Add fetch.writeCommitGraph to gitconfig (go-gitea#20006)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zeripath authored and AbdulrhmnGhanem committed Aug 23, 2022
1 parent dee1a92 commit 1404130
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ func syncGitConfig() (err error) {
if err := configSet("gc.writeCommitGraph", "true"); err != nil {
return err
}
if err := configSet("fetch.writeCommitGraph", "true"); err != nil {
return err
}
}

if SupportProcReceive {
Expand Down

0 comments on commit 1404130

Please sign in to comment.