mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-17 02:40:40 +01:00
Use account.fullName instead of userName for Web UI edit, Wiki uploads.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -717,7 +717,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()
|
||||
|
||||
Reference in New Issue
Block a user