Merge pull request #1715 from kounoike/pr-use-fullname-for-edit

Use account.fullName instead of userName for Web UI edit, Wiki uploads.
This commit is contained in:
Naoki Takezoe
2017-10-08 13:06:46 +09:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ class FileUploadController extends ScalatraServlet with FileUploadSupport with R
builder.finish()
val newHeadId = JGitUtil.createNewCommit(git, inserter, headId, builder.getDirCache.writeTree(inserter),
Constants.HEAD, loginAccount.userName, loginAccount.mailAddress, s"Uploaded ${fileName}")
Constants.HEAD, loginAccount.fullName, loginAccount.mailAddress, s"Uploaded ${fileName}")
fileName
}

View File

@@ -718,7 +718,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
f(git, headTip, builder, inserter)
val commitId = JGitUtil.createNewCommit(git, inserter, headTip, builder.getDirCache.writeTree(inserter),
headName, loginAccount.userName, loginAccount.mailAddress, message)
headName, loginAccount.fullName, loginAccount.mailAddress, message)
inserter.flush()
inserter.close()