Commits

Sebastian Sdorra committed 4866b37

fix wrong file modifications on git changeset overview

Comments (0)

Files changed (1)

scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverter.java

     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);
   }