]> andersk Git - svn-all-fast-export.git/commitdiff
Parse rules correctly
authorThiago Macieira <thiago@cassini.local.lan>
Sun, 23 Dec 2007 22:07:44 +0000 (20:07 -0200)
committerThiago Macieira <thiago@cassini.local.lan>
Sun, 23 Dec 2007 22:07:44 +0000 (20:07 -0200)
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.05936 seconds and 5 git commands to generate.