diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java index 6d7e3c908b..3c9ce9900b 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java @@ -204,7 +204,7 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand ObjectId endId = null; - if (!Strings.isNullOrEmpty(request.getStartChangeset())) + if (!Strings.isNullOrEmpty(request.getEndChangeset())) { endId = gr.resolve(request.getEndChangeset()); } @@ -217,7 +217,7 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand } for (RevCommit commit : cmd.call()) - { + { if (!started && ((startId == null) || commit.getId().equals(startId))) { started = true;