Skip to content

Commit 09667d0

Browse files
aoakley-rokugitster
authored andcommitted
git-p4: correct hasBranchPrefix verbose output
The logic here was inverted, you got a message saying the file is ignored for each file that is not ignored. Signed-off-by: Andrew Oakley <[email protected]> Acked-by: Lars Schneider <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4ae048e commit 09667d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-p4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,7 @@ def hasBranchPrefix(self, path):
23152315
return True
23162316
hasPrefix = [p for p in self.branchPrefixes
23172317
if p4PathStartsWith(path, p)]
2318-
if hasPrefix and self.verbose:
2318+
if not hasPrefix and self.verbose:
23192319
print('Ignoring file outside of prefix: {0}'.format(path))
23202320
return hasPrefix
23212321

0 commit comments

Comments
 (0)