From: Andrew Oakley Date: Wed, 22 Jun 2016 09:26:11 +0000 (+0100) Subject: git-p4: correct hasBranchPrefix verbose output X-Git-Tag: v2.9.1~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09667d013c91124ac0ff870322e184f0de53744f;p=thirdparty%2Fgit.git 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 Acked-by: Lars Schneider Signed-off-by: Junio C Hamano --- diff --git a/git-p4.py b/git-p4.py index 4ad7c6890c..d58ea0f607 100755 --- a/git-p4.py +++ b/git-p4.py @@ -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