aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeripath2022-06-17 21:18:35 +0100
committerGitHub2022-06-17 21:18:35 +0100
commitea9997a9ddaa5c1ae3a3f062dddfeb92321f2338 (patch)
tree2fad7e8a124d6faa9200095669c652c9fbcfbadb
parent27ba86d283f015ec6676803d7e26333f1c7dff7f (diff)
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>
-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 e59eeddc6..3a3663995 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 {