]> andersk Git - svn-all-fast-export.git/blobdiff - src/ruleparser.cpp
Parse rules correctly
[svn-all-fast-export.git] / src / ruleparser.cpp
index ea678658128acce1b86ead3f0cf846b32b031265..f116ce4e428e3baf6bd7fb262e3d41158fba68d6 100644 (file)
@@ -77,14 +77,19 @@ void Rules::load()
                 branch.branchFrom = repoBranchLine.cap(1);
 
                 repo.branches += branch;
+                continue;
             }
         } else if (state == ReadingMatch) {
-            if (matchRepoLine.exactMatch(line))
+            if (matchRepoLine.exactMatch(line)) {
                 match.repository = matchRepoLine.cap(0);
-            else if (matchBranchLine.exactMatch(line))
+                continue;
+            } else if (matchBranchLine.exactMatch(line)) {
                 match.branch = matchBranchLine.cap(0);
-            else if (matchPathLine.exactMatch(line))
+                continue;
+            } else if (matchPathLine.exactMatch(line)) {
                 match.path = matchPathLine.cap(0);
+                continue;
+            }
         }
 
         bool isRepositoryRule = repoLine.exactMatch(line);
This page took 0.026707 seconds and 4 git commands to generate.