Get all data from the bare repository.

Cloned repositories in backend is not necessary at last.
This commit is contained in:
takezoe
2013-04-30 01:07:31 +09:00
parent 1779d167ea
commit 35f0aa7b03
5 changed files with 47 additions and 126 deletions

View File

@@ -43,16 +43,6 @@ object JGitUtil {
)
}
/**
* Get the branch name from the commit id.
*/
def getBranchNameFromCommitId(id: String, repositoryInfo: RepositoryInfo): String = {
repositoryInfo.branchList.find { branch =>
val git = Git.open(getBranchDir(repositoryInfo.owner, repositoryInfo.name, branch))
git.log.add(ObjectId.fromString(id)).call.iterator.hasNext
}.get
}
/**
* Returns the file list of the specified path.
*