Commits

Sebastian Sdorra committed 02c728e

use revwalk from rpack for changeset converter

Comments (0)

Files changed (1)

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

 
     org.eclipse.jgit.lib.Repository repository = rpack.getRepository();
 
+    RevWalk walk = null;
+    
     GitChangesetConverter converter = null;
-    RevWalk walk = null;
 
     try
     {
-      converter = new GitChangesetConverter(repository, GitUtil.ID_LENGTH);
       walk = rpack.getRevWalk();
+      converter = new GitChangesetConverter(repository, walk, GitUtil.ID_LENGTH);
 
       for (ReceiveCommand rc : receiveCommands)
       {