diff options
author | SjonHortensius <SjonHortensius@users.noreply.github.com> | 2016-06-27 10:10:12 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-06-27 16:10:12 +0800 |
commit | 17a4d8a5e50d74df3bc464468101c19fb545b74e (patch) | |
tree | e9c42b1c10b3bf4c49f8fdac9cf345132d838b57 /models | |
parent | 04592c385b669b4f3dc83405ff90b79629e93773 (diff) | |
download | gitea-17a4d8a5e50d74df3bc464468101c19fb545b74e.tar.gz gitea-17a4d8a5e50d74df3bc464468101c19fb545b74e.zip |
Fix capitalisation of repo-name in news (#3203)
use 'official' repo.Name instead of incoming repoName; to enforce
correct capitalisation
Diffstat (limited to 'models')
-rw-r--r-- | models/action.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go index 91d43bae99..bb4a585bb8 100644 --- a/models/action.go +++ b/models/action.go @@ -489,7 +489,7 @@ func CommitRepoAction( Content: string(bs), RepoID: repo.ID, RepoUserName: repoUserName, - RepoName: repoName, + RepoName: repo.Name, RefName: refName, IsPrivate: repo.IsPrivate, }); err != nil { |