1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Fix and set git config

This commit is contained in:
Unknwon 2014-08-23 23:58:56 +08:00
parent 97a373f5e7
commit e325c8499a

View 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.