git-p4: correct hasBranchPrefix verbose output
[gitweb.git] / git-p4.py
index 4ad7c6890cf57860a280169e73188a443cdc949c..d58ea0f607b3b75cbc3795413306df5df0843c2e 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -2315,7 +2315,7 @@ def hasBranchPrefix(self, path):
             return True
         hasPrefix = [p for p in self.branchPrefixes
                         if p4PathStartsWith(path, p)]
-        if hasPrefix and self.verbose:
+        if not hasPrefix and self.verbose:
             print('Ignoring file outside of prefix: {0}'.format(path))
         return hasPrefix