Commits

Sebastian Sdorra committed b875956

fix wrong order for changesets

Comments (0)

Files changed (1)

src/main/java/sonia/scm/webhook/WebHookExecutor.java

     Iterator<Changeset> it = changesets.iterator();
     Changeset changeset = it.next();
 
-    env.put("first", changeset);
+    env.put("last", changeset);
 
     while (it.hasNext())
     {
       changeset = it.next();
     }
 
-    env.put("last", changeset);
+    env.put("first", changeset);
 
     return urlParser.parse(urlPattern, env);
   }