aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago@cassini.local.lan>2007-12-24 11:58:37 -0200
committerThiago Macieira <thiago@cassini.local.lan>2007-12-24 11:58:37 -0200
commit09f6282e63cd7f0757ecacd90c062d27df8509d2 (patch)
treedf1efdfa15cd9eae10ef54d8eee1bca1de4b3b10 /src
parent266afd58cc06fcc9a529e7bb26d53c3728887432 (diff)
downloadsvn2git-09f6282e63cd7f0757ecacd90c062d27df8509d2.tar
svn2git-09f6282e63cd7f0757ecacd90c062d27df8509d2.tar.gz
svn2git-09f6282e63cd7f0757ecacd90c062d27df8509d2.tar.bz2
svn2git-09f6282e63cd7f0757ecacd90c062d27df8509d2.tar.xz
svn2git-09f6282e63cd7f0757ecacd90c062d27df8509d2.zip
Prepend refs/heads/ to the origin branch too
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);