The Unified and Autonomous Development Platform
midwork
robin shinebf5071c54d62
diff --git a/commons.git/src/main/java/com/pmease/commons/git/command/LogCommand.java b/commons.git/src/main/java/com/pmease/commons/git/command/LogCommand.javaindex 3196cb628f..27722f0d35 100644--- a/commons.git/src/main/java/com/pmease/commons/git/command/LogCommand.java+++ b/commons.git/src/main/java/com/pmease/commons/git/command/LogCommand.java@@ -30,7 +30,7 @@ public class LogCommand extends GitCommand<List<Commit>> {private Date untilDate;- private boolean allBranchesAndTags;+ private boolean allBranches;private String path;@@ -56,8 +56,8 @@ public class LogCommand extends GitCommand<List<Commit>> {return this;}- public void allBranchesAndTags(boolean allBranchesAndTags) {- this.allBranchesAndTags = allBranchesAndTags;+ public void allBranches(boolean allBranches) {+ this.allBranches = allBranches;}public LogCommand sinceDate(Date sinceDate) {@@ -113,7 +113,7 @@ public class LogCommand extends GitCommand<List<Commit>> {cmd.addArgs(toRev);}- if (allBranchesAndTags)+ if (allBranches)cmd.addArgs("--branches", "--tags");if (sinceDate != null)diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.javaindex 5158b8bc6f..2fe8af7f70 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.java@@ -87,7 +87,7 @@ public class RepoCommitsPage extends RepositoryPage {if (revisionHash != null)log.toRev(revisionHash);else- log.allBranchesAndTags(true);+ log.allBranches(true);if (state.path != null)log.path(state.path);@@ -125,7 +125,6 @@ public class RepoCommitsPage extends RepositoryPage {Map<String, List<String>> labels = new HashMap<>();Map<String, Ref> refs = new HashMap<>();refs.putAll(getRepository().getRefs(Git.REFS_HEADS));- refs.putAll(getRepository().getRefs(Git.REFS_TAGS));for (Map.Entry<String, Ref> entry: refs.entrySet()) {String commitHash = entry.getValue().getObjectId().name();List<String> commitLabels = labels.get(commitHash);