diff --git a/src/main/java/jenkins/plugins/git/AbstractGitSCMSource.java b/src/main/java/jenkins/plugins/git/AbstractGitSCMSource.java index 3ecad2d1f0..833ade1e93 100644 --- a/src/main/java/jenkins/plugins/git/AbstractGitSCMSource.java +++ b/src/main/java/jenkins/plugins/git/AbstractGitSCMSource.java @@ -379,6 +379,12 @@ public boolean equals(Object o) { public int hashCode() { return hash != null ? hash.hashCode() : 0; } + + @Override + public String toString() { + return hash; + } + } public static class SpecificRevisionBuildChooser extends BuildChooser {