mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
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 <aoakley@roku.com> Acked-by: Lars Schneider <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
4ae048e67e
commit
09667d013c
@ -2315,7 +2315,7 @@ class P4Sync(Command, P4UserMap):
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user