diff options
author | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-24 11:58:37 -0200 |
---|---|---|
committer | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-24 11:58:37 -0200 |
commit | 09f6282e63cd7f0757ecacd90c062d27df8509d2 (patch) | |
tree | df1efdfa15cd9eae10ef54d8eee1bca1de4b3b10 /src | |
parent | 266afd58cc06fcc9a529e7bb26d53c3728887432 (diff) | |
download | svn2git-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.cpp | 2 |
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); |