Remove var!

This commit is contained in:
takezoe
2013-07-15 13:02:26 +09:00
parent 9bb6b216e9
commit 78d48c8be3

View File

@@ -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",