]> source.dussan.org Git - gitblit.git/commitdiff
Check for refs/ not refs/heads/ when updating a ref
authorJames Moger <james.moger@gitblit.com>
Tue, 1 Oct 2013 21:24:42 +0000 (17:24 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 1 Oct 2013 21:24:42 +0000 (17:24 -0400)
Change-Id: I19f9507fdb859902a6df96f1960433a91378e400

src/main/java/com/gitblit/utils/JGitUtils.java

index 75a4405832b7604e3a6053a17c59d126df11bd0e..ecc6359298063cb3d73a5ff56cba0200db7420c5 100644 (file)
@@ -1540,7 +1540,7 @@ public class JGitUtils {
         */\r
        public static boolean setBranchRef(Repository repository, String branch, String commitId) {\r
                String branchName = branch;\r
-               if (!branchName.startsWith(Constants.R_HEADS)) {\r
+               if (!branchName.startsWith(Constants.R_REFS)) {\r
                        branchName = Constants.R_HEADS + branch;\r
                }\r
 \r