summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/gitblit/wicket/panels/RefsPanel.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/wicket/panels/RefsPanel.java b/src/main/java/com/gitblit/wicket/panels/RefsPanel.java
index 1a763119..7a16f4a2 100644
--- a/src/main/java/com/gitblit/wicket/panels/RefsPanel.java
+++ b/src/main/java/com/gitblit/wicket/panels/RefsPanel.java
@@ -122,11 +122,13 @@ public class RefsPanel extends Panel {
cssClass = "otherRef";
} else if (name.startsWith(Constants.R_PULL)) {
// Pull Request ref
- name = "pull #" + name.substring(Constants.R_PULL.length());
- if (name.endsWith("/head")) {
+ String num = name.substring(Constants.R_PULL.length());
+ if (num.endsWith("/head")) {
// strip pull request head from name
- name = name.substring(0, name.length() - "/head".length());
+ num = num.substring(0, num.length() - "/head".length());
}
+ name = "pr #" + num;
+ tooltip = "pull request #" + num;
cssClass = "pullRef";
} else if (name.startsWith(Constants.R_REMOTES)) {
// remote branch