mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 13:35:50 +01:00
Remove var!
This commit is contained in:
@@ -146,12 +146,7 @@ object JGitUtil {
|
|||||||
withGit(getRepositoryDir(owner, repository)){ git =>
|
withGit(getRepositoryDir(owner, repository)){ git =>
|
||||||
try {
|
try {
|
||||||
// get commit count
|
// get commit count
|
||||||
val i = git.log.all.call.iterator
|
val commitCount = git.log.all.call.iterator.asScala.map(_ => 1).take(1000).sum
|
||||||
var commitCount = 0
|
|
||||||
while(i.hasNext && commitCount <= 1000){
|
|
||||||
i.next
|
|
||||||
commitCount = commitCount + 1
|
|
||||||
}
|
|
||||||
|
|
||||||
RepositoryInfo(
|
RepositoryInfo(
|
||||||
owner, repository, s"${baseUrl}/git/${owner}/${repository}.git",
|
owner, repository, s"${baseUrl}/git/${owner}/${repository}.git",
|
||||||
|
|||||||
Reference in New Issue
Block a user