Merge remote-tracking branch 'origin/master'

This commit is contained in:
Naoki Takezoe
2014-04-11 11:58:51 +09:00
3 changed files with 5 additions and 1 deletions

View File

@@ -573,7 +573,9 @@ object JGitUtil {
/**
* Returns all commit id in the specified repository.
*/
def getAllCommitIds(git: Git): Seq[String] = {
def getAllCommitIds(git: Git): Seq[String] = if(isEmpty(git)) {
Nil
} else {
val existIds = new scala.collection.mutable.ListBuffer[String]()
val i = git.log.all.call.iterator
while(i.hasNext){