mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-15 09:55:49 +01:00
(refs #1167)Fix commit information in the branch view
This commit is contained in:
@@ -898,11 +898,7 @@ object JGitUtil {
|
|||||||
try {
|
try {
|
||||||
val defaultCommit = walk.parseCommit(defaultObject)
|
val defaultCommit = walk.parseCommit(defaultObject)
|
||||||
val branchName = ref.getName.stripPrefix("refs/heads/")
|
val branchName = ref.getName.stripPrefix("refs/heads/")
|
||||||
val branchCommit = if(branchName == defaultBranch){
|
val branchCommit = walk.parseCommit(ref.getObjectId)
|
||||||
defaultCommit
|
|
||||||
} else {
|
|
||||||
walk.parseCommit(ref.getObjectId)
|
|
||||||
}
|
|
||||||
val when = branchCommit.getCommitterIdent.getWhen
|
val when = branchCommit.getCommitterIdent.getWhen
|
||||||
val committer = branchCommit.getCommitterIdent.getName
|
val committer = branchCommit.getCommitterIdent.getName
|
||||||
val committerEmail = branchCommit.getCommitterIdent.getEmailAddress
|
val committerEmail = branchCommit.getCommitterIdent.getEmailAddress
|
||||||
|
|||||||
Reference in New Issue
Block a user