summaryrefslogtreecommitdiffstats
path: root/cmd/serv.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-06-11 09:13:24 +0800
committerGitHub <noreply@github.com>2019-06-11 09:13:24 +0800
commit74690f64514424ac643a8007828de1a785705793 (patch)
tree4a99e1835a7181b197d7c2ab3fcb6f8eade336c2 /cmd/serv.go
parentb3b468444b1dcc6c4353df232b6a74b2017e83db (diff)
downloadgitea-74690f64514424ac643a8007828de1a785705793.tar.gz
gitea-74690f64514424ac643a8007828de1a785705793.zip
fix pusher name via ssh push (#7167)
Diffstat (limited to 'cmd/serv.go')
-rw-r--r--cmd/serv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/serv.go b/cmd/serv.go
index 0b0a4e8efb..c0cb3cd50f 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -209,7 +209,7 @@ func runServ(c *cli.Context) error {
os.Setenv(models.EnvRepoIsWiki, strconv.FormatBool(results.IsWiki))
os.Setenv(models.EnvRepoName, results.RepoName)
os.Setenv(models.EnvRepoUsername, results.OwnerName)
- os.Setenv(models.EnvPusherName, username)
+ os.Setenv(models.EnvPusherName, results.UserName)
os.Setenv(models.EnvPusherID, strconv.FormatInt(results.UserID, 10))
os.Setenv(models.ProtectedBranchRepoID, strconv.FormatInt(results.RepoID, 10))