merge with branch 1.x

This commit is contained in:
Sebastian Sdorra
2017-01-12 19:50:39 +01:00
250 changed files with 16399 additions and 1573 deletions

View File

@@ -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;
}
/**