mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 05:25:50 +01:00
Get all data from the bare repository.
Cloned repositories in backend is not necessary at last.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user