summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorj.yao.SUSE <everhopingandwaiting@users.noreply.github.com>2020-04-07 09:40:38 +0800
committerGitHub <noreply@github.com>2020-04-06 21:40:38 -0400
commitb252b23f1659c2a81c252d7d9a7e0aef2aac91fb (patch)
tree4499452b62c054605c42baeb1188da639e32ee6f /modules
parent17837986f0583e8520ea8994bfcf214e7951f5ca (diff)
downloadgitea-b252b23f1659c2a81c252d7d9a7e0aef2aac91fb.tar.gz
gitea-b252b23f1659c2a81c252d7d9a7e0aef2aac91fb.zip
[feature] provide `OwnerName` field for README template (#10981)
Co-Authored-By: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/repository/init.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/repository/init.go b/modules/repository/init.go
index 320fba53fc..f468ca0435 100644
--- a/modules/repository/init.go
+++ b/modules/repository/init.go
@@ -55,6 +55,7 @@ func prepareRepoCommit(ctx models.DBContext, repo *models.Repository, tmpDir, re
"Description": repo.Description,
"CloneURL.SSH": cloneLink.SSH,
"CloneURL.HTTPS": cloneLink.HTTPS,
+ "OwnerName": repo.OwnerName,
}
if err = ioutil.WriteFile(filepath.Join(tmpDir, "README.md"),
[]byte(com.Expand(string(data), match)), 0644); err != nil {