From: Thiago Macieira Date: Mon, 24 Dec 2007 13:58:37 +0000 (-0200) Subject: Prepend refs/heads/ to the origin branch too X-Git-Url: http://andersk.mit.edu/gitweb/svn-all-fast-export.git/commitdiff_plain/09f6282e63cd7f0757ecacd90c062d27df8509d2 Prepend refs/heads/ to the origin branch too --- 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);