diff options
author | James Moger <james.moger@gitblit.com> | 2013-10-01 17:24:42 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-10-01 17:24:42 -0400 |
commit | 5404d4ba41a8e9c194583f3990602c1738e194e1 (patch) | |
tree | d9be2aa0d2c6f8234cda06b9b001d3116e8ba0ef /src/main/java | |
parent | 4360b3af73e5e9e575adee9f8d8b462a20445553 (diff) | |
download | gitblit-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.java | 2 |
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;
}
|