summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-24 18:41:41 -0400
committerUnknwon <u@gogs.io>2015-03-24 18:41:41 -0400
commit9c67a193321a766097e6494484df5370010b512c (patch)
tree774f49e2e06f5c29e05cfa1eb1b567deab1e2853
parentcaf7618ea6771823e4954941ebf9d6227c4f48df (diff)
downloadgitea-9c67a193321a766097e6494484df5370010b512c.tar.gz
gitea-9c67a193321a766097e6494484df5370010b512c.zip
#1089 change to fake local email account
-rw-r--r--models/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index 73b635d240..5412ca8f82 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -104,8 +104,8 @@ func NewRepoContext() {
log.Fatal(4, "Gogs requires Git version greater or equal to 1.7.1")
}
- // Check if server has user.email and user.name set correctly and set if they're not.
- for configKey, defaultValue := range map[string]string{"user.name": "Gogs", "user.email": "gogitservice@gmail.com"} {
+ // 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"} {
if stdout, stderr, err := process.Exec("NewRepoContext(get setting)", "git", "config", "--get", configKey); err != nil || strings.TrimSpace(stdout) == "" {
// ExitError indicates this config is not set
if _, ok := err.(*exec.ExitError); ok || strings.TrimSpace(stdout) == "" {