git-p4: respect excluded paths when detecting branches
[gitweb.git] / git-p4.py
index c47bd8c4d899a09d0693d7f169da12d8d0028a74..96c4b78dc7c8f4ea70975878e8c4f18ab629e82c 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -2710,8 +2710,7 @@ def splitFilesIntoBranches(self, commit):
         fnum = 0
         while "depotFile%s" % fnum in commit:
             path =  commit["depotFile%s" % fnum]
-            found = [p for p in self.depotPaths
-                     if p4PathStartsWith(path, p)]
+            found = self.isPathWanted(path)
             if not found:
                 fnum = fnum + 1
                 continue