summaryrefslogtreecommitdiffstats
path: root/models/helper_environment.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-01-12 17:36:21 +0800
committerGitHub <noreply@github.com>2020-01-12 17:36:21 +0800
commit5765212c6dbcaeb27779707af3ca57775e535bd9 (patch)
treed3cf5fcedf21486e3b26731ba93cebd8ee13532b /models/helper_environment.go
parent65baacf2273f74876b3faed93f60641389a20d39 (diff)
downloadgitea-5765212c6dbcaeb27779707af3ca57775e535bd9.tar.gz
gitea-5765212c6dbcaeb27779707af3ca57775e535bd9.zip
Add owner_name column for table repository for maintaince reason (#9717)
* Add owner_name column for table repository for maintaince reason * refactor * Fix tests * fix test * fix bug when fork repository Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'models/helper_environment.go')
-rw-r--r--models/helper_environment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/helper_environment.go b/models/helper_environment.go
index 35af17adb1..112df96823 100644
--- a/models/helper_environment.go
+++ b/models/helper_environment.go
@@ -43,7 +43,7 @@ func FullPushingEnvironment(author, committer *User, repo *Repository, repoName
"GIT_COMMITTER_NAME="+committerSig.Name,
"GIT_COMMITTER_EMAIL="+committerSig.Email,
EnvRepoName+"="+repoName,
- EnvRepoUsername+"="+repo.MustOwnerName(),
+ EnvRepoUsername+"="+repo.OwnerName,
EnvRepoIsWiki+"="+isWiki,
EnvPusherName+"="+committer.Name,
EnvPusherID+"="+fmt.Sprintf("%d", committer.ID),