]> source.dussan.org Git - gitea.git/commitdiff
Fix and set git config
authorUnknwon <joe2010xtmf@163.com>
Sat, 23 Aug 2014 15:58:56 +0000 (23:58 +0800)
committerUnknwon <joe2010xtmf@163.com>
Sat, 23 Aug 2014 15:58:56 +0000 (23:58 +0800)
models/repo.go

index 218887cca21087927e266826029e7b2a9a7bd452..9666192df66b50d01f6e92de9e478099ee97a602 100644 (file)
@@ -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.