1
0
Fork 0
forked from forgejo/forgejo

print out git version

This commit is contained in:
Unknwon 2015-10-13 16:01:57 -04:00
parent a42514613f
commit 6a6e43f964
2 changed files with 6 additions and 0 deletions

View file

@ -105,6 +105,7 @@ func NewRepoContext() {
if ver.LessThan(reqVer) {
log.Fatal(4, "Gogs requires Git version greater or equal to 1.7.1")
}
log.Info("Git version: %s", ver.String())
// Git requires setting user.name and user.email in order to commit changes.
for configKey, defaultValue := range map[string]string{"user.name": "Gogs", "user.email": "gogs@fake.local"} {