aboutsummaryrefslogtreecommitdiff
path: root/internal/db
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2019-11-05 11:01:11 -0800
committerUnknwon <u@gogs.io>2019-11-05 11:01:11 -0800
commit83b480761fc378f799204150c9834a4ab4960970 (patch)
treee3b08001e6b4ebb9c4265499f21c298f2bf742dc /internal/db
parentb40b85e006d0e3858b423e36d437de73cd08d00a (diff)
db/repo: print more error info
Diffstat (limited to 'internal/db')
-rw-r--r--internal/db/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/repo.go b/internal/db/repo.go
index e8f7fe3f..e9023264 100644
--- a/internal/db/repo.go
+++ b/internal/db/repo.go
@@ -141,7 +141,7 @@ func NewRepoContext() {
// 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)
+ log.Fatal(2, "Fail to execute 'git config --global core.quotepath false': %v - %s", err, stderr)
}
RemoveAllWithNotice("Clean up repository temporary data", filepath.Join(setting.AppDataPath, "tmp"))