瀏覽代碼

Fix and set git config

tags/v0.9.99
Unknwon 9 年之前
父節點
當前提交
e325c8499a
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. 7
    0
      models/repo.go

+ 7
- 0
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.

Loading…
取消
儲存