fix wrong file modifications on git changeset overview

This commit is contained in:
Sebastian Sdorra
2012-08-20 11:12:08 +02:00
parent 789631161e
commit b62ff5c7a9

View File

@@ -102,13 +102,18 @@ public class GitChangesetConverter implements Closeable
RevWalk revWalk, int idLength)
{
this.repository = repository;
this.idLength = idLength;
if (revWalk == null)
if (revWalk != null)
{
revWalk = new RevWalk(repository);
this.revWalk = revWalk;
}
else
{
this.revWalk = new RevWalk(repository);
}
this.idLength = idLength;
this.tags = GitUtil.createTagMap(repository, revWalk);
treeWalk = new TreeWalk(repository);
}