summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-10-01 17:24:42 -0400
committerJames Moger <james.moger@gitblit.com>2013-10-01 17:24:42 -0400
commit5404d4ba41a8e9c194583f3990602c1738e194e1 (patch)
treed9be2aa0d2c6f8234cda06b9b001d3116e8ba0ef /src/main/java
parent4360b3af73e5e9e575adee9f8d8b462a20445553 (diff)
downloadgitblit-5404d4ba41a8e9c194583f3990602c1738e194e1.tar.gz
gitblit-5404d4ba41a8e9c194583f3990602c1738e194e1.zip
Check for refs/ not refs/heads/ when updating a ref
Change-Id: I19f9507fdb859902a6df96f1960433a91378e400
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/gitblit/utils/JGitUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/utils/JGitUtils.java b/src/main/java/com/gitblit/utils/JGitUtils.java
index 75a44058..ecc63592 100644
--- a/src/main/java/com/gitblit/utils/JGitUtils.java
+++ b/src/main/java/com/gitblit/utils/JGitUtils.java
@@ -1540,7 +1540,7 @@ public class JGitUtils {
*/
public static boolean setBranchRef(Repository repository, String branch, String commitId) {
String branchName = branch;
- if (!branchName.startsWith(Constants.R_HEADS)) {
+ if (!branchName.startsWith(Constants.R_REFS)) {
branchName = Constants.R_HEADS + branch;
}