summaryrefslogtreecommitdiff
path: root/git-p4.py
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-05 21:00:27 -0700
committerJunio C Hamano <gitster@pobox.com>2015-05-05 21:00:28 -0700
commita9d00b662f0fdb88434b85d2bd55ebfee227e0d7 (patch)
tree07d96aeadb52c7ac626a9a1adaa4ac952b62f5f5 /git-p4.py
parente971a1f9d52295503b7ea0cdb75e46470d5d5d8a (diff)
parent34a0dbfc6b7463a68df79d5773102f85e56cbe4d (diff)
downloadgit-a9d00b662f0fdb88434b85d2bd55ebfee227e0d7.tar.gz
Merge branch 'ld/p4-filetype-detection'
* ld/p4-filetype-detection: git-p4: fix filetype detection on files opened exclusively git-p4: small fix for locked-file-move-test git-p4: fix small bug in locked test scripts
Diffstat (limited to 'git-p4.py')
-rwxr-xr-xgit-p4.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-p4.py b/git-p4.py
index 549022e97c..2e1c4af191 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -368,7 +368,7 @@ def getP4OpenedType(file):
# Returns the perforce file type for the given file.
result = p4_read_pipe(["opened", wildcard_encode(file)])
- match = re.match(".*\((.+)\)\r?$", result)
+ match = re.match(".*\((.+)\)( \*exclusive\*)?\r?$", result)
if match:
return match.group(1)
else: