Browse Source

db/repo: print more error info

Unknwon 5 years ago
parent
commit
83b480761f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      gogs.go
  2. 1 1
      internal/db/repo.go

+ 1 - 1
gogs.go

@@ -17,7 +17,7 @@ import (
 	"gogs.io/gogs/internal/setting"
 	"gogs.io/gogs/internal/setting"
 )
 )
 
 
-const Version = "0.11.96.1026"
+const Version = "0.11.96.1105"
 
 
 func init() {
 func init() {
 	setting.AppVer = Version
 	setting.AppVer = Version

+ 1 - 1
internal/db/repo.go

@@ -141,7 +141,7 @@ func NewRepoContext() {
 	// Set git some configurations.
 	// Set git some configurations.
 	if _, stderr, err := process.Exec("NewRepoContext(git config --global core.quotepath false)",
 	if _, stderr, err := process.Exec("NewRepoContext(git config --global core.quotepath false)",
 		"git", "config", "--global", "core.quotepath", "false"); err != nil {
 		"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"))
 	RemoveAllWithNotice("Clean up repository temporary data", filepath.Join(setting.AppDataPath, "tmp"))