aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/git.go')
-rw-r--r--modules/setting/git.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/setting/git.go b/modules/setting/git.go
index 968de55753..80170e37bf 100644
--- a/modules/setting/git.go
+++ b/modules/setting/git.go
@@ -74,6 +74,9 @@ func newGit() {
log.Fatal("Error retrieving git version: %v", err)
}
+ // force cleanup args
+ git.GlobalCommandArgs = []string{}
+
if git.CheckGitVersionAtLeast("2.9") == nil {
// Explicitly disable credential helper, otherwise Git credentials might leak
git.GlobalCommandArgs = append(git.GlobalCommandArgs, "-c", "credential.helper=")