mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
merge with branch 1.x
This commit is contained in:
@@ -476,19 +476,10 @@ public class GitRepositoryClient extends AbstractRepositoryClient
|
||||
private RevCommit parseCommit(Ref branch)
|
||||
throws MissingObjectException, IncorrectObjectTypeException, IOException
|
||||
{
|
||||
final RevWalk rw = new RevWalk(repository);
|
||||
final RevCommit commit;
|
||||
|
||||
try
|
||||
try (RevWalk rw = new RevWalk(repository))
|
||||
{
|
||||
commit = rw.parseCommit(branch.getObjectId());
|
||||
return rw.parseCommit(branch.getObjectId());
|
||||
}
|
||||
finally
|
||||
{
|
||||
rw.release();
|
||||
}
|
||||
|
||||
return commit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user