]> andersk Git - svn-all-fast-export.git/commitdiff
Prepend refs/heads/ to the origin branch too
authorThiago Macieira <thiago@cassini.local.lan>
Mon, 24 Dec 2007 13:58:37 +0000 (11:58 -0200)
committerThiago Macieira <thiago@cassini.local.lan>
Mon, 24 Dec 2007 13:58:37 +0000 (11:58 -0200)
src/repository.cpp

index 3bbbe7ec012c74cd0cdf459b9024c2f6f525d03d..b85988514307596d0fa76e923d2152a3b0ca4299 100644 (file)
@@ -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);
This page took 0.103354 seconds and 5 git commands to generate.