From 09f6282e63cd7f0757ecacd90c062d27df8509d2 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 24 Dec 2007 11:58:37 -0200 Subject: [PATCH] Prepend refs/heads/ to the origin branch too --- src/repository.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.45.0