aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-06-17 21:18:35 +0100
committerGitHub <noreply@github.com>2022-06-17 21:18:35 +0100
commitea9997a9ddaa5c1ae3a3f062dddfeb92321f2338 (patch)
tree2fad7e8a124d6faa9200095669c652c9fbcfbadb /modules/git
parent27ba86d283f015ec6676803d7e26333f1c7dff7f (diff)
downloadgitea-ea9997a9ddaa5c1ae3a3f062dddfeb92321f2338.tar.gz
gitea-ea9997a9ddaa5c1ae3a3f062dddfeb92321f2338.zip
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>
Diffstat (limited to 'modules/git')
-rw-r--r--modules/git/git.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/git/git.go b/modules/git/git.go
index e59eeddc66..3a3663995b 100644
--- a/modules/git/git.go
+++ b/modules/git/git.go
@@ -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 {