summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-23 23:58:56 +0800
committerUnknwon <joe2010xtmf@163.com>2014-08-23 23:58:56 +0800
commite325c8499a102ba8a6a84236c02dd7951f46cec5 (patch)
treeba851c588821d941a10ca7df87b696b95dff232f /models
parent97a373f5e7cda54fa490a3a6993a0b839ff18b01 (diff)
downloadgitea-e325c8499a102ba8a6a84236c02dd7951f46cec5.tar.gz
gitea-e325c8499a102ba8a6a84236c02dd7951f46cec5.zip
Fix and set git config
Diffstat (limited to 'models')
-rw-r--r--models/repo.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index 218887cca2..9666192df6 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -110,6 +110,13 @@ func NewRepoContext() {
log.Fatal(4, "Fail to set git user.name: %s", stderr)
}
}
+
+ // Set git some configurations.
+ if _, stderr, err = process.Exec("NewRepoContext(git config --global core.quotepath false)",
+ "git", "config", "--global", "core.quotepath", "false"); err != nil {
+ log.Fatal(4, "Fail to execute 'git config --global core.quotepath false': %s", stderr)
+ }
+
}
// Repository represents a git repository.