aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/repository.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index 3bbbe7e..b859885 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -25,6 +25,8 @@ Repository::Repository(const Rules::Repository &rule)
foreach (Rules::Repository::Branch branchRule, rule.branches) {
Branch branch;
branch.branchFrom = branchRule.branchFrom;
+ if (!branch.branchFrom.startsWith("refs/heads/"))
+ branch.branchFrom.prepend("refs/heads/");
branch.isCreated = false;
branches.insert(branchRule.name, branch);