summaryrefslogtreecommitdiff
path: root/t/t9816-git-p4-locked.sh
diff options
context:
space:
mode:
authorBlair Holloway <blair_holloway@playstation.sony.com>2015-04-04 08:46:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-04-04 19:43:20 (GMT)
commit34a0dbfc6b7463a68df79d5773102f85e56cbe4d (patch)
treea822caf1c918d173462522a7ce36a2111c2cf454 /t/t9816-git-p4-locked.sh
parentd077c2db8db64c931976391afee6c35828868a11 (diff)
downloadgit-34a0dbfc6b7463a68df79d5773102f85e56cbe4d.zip
git-34a0dbfc6b7463a68df79d5773102f85e56cbe4d.tar.gz
git-34a0dbfc6b7463a68df79d5773102f85e56cbe4d.tar.bz2
git-p4: fix filetype detection on files opened exclusively
If a Perforce server is configured to automatically set +l (exclusive lock) on add of certain file types, git p4 submit will fail during getP4OpenedType, as the regex doesn't expect the trailing '*exclusive*' from p4 opened: //depot/file.png#1 - add default change (binary+l) *exclusive* Signed-off-by: Blair Holloway <blair_holloway@playstation.sony.com> Acked-by: Luke Diamand <luke@diamand.org> Signed-off-by: Luke Diamand <luke@diamand.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9816-git-p4-locked.sh')
-rwxr-xr-xt/t9816-git-p4-locked.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t9816-git-p4-locked.sh b/t/t9816-git-p4-locked.sh
index 464f10b..d048bd3 100755
--- a/t/t9816-git-p4-locked.sh
+++ b/t/t9816-git-p4-locked.sh
@@ -35,7 +35,7 @@ test_expect_success 'edit with lock not taken' '
)
'
-test_expect_failure 'add with lock not taken' '
+test_expect_success 'add with lock not taken' '
test_when_finished cleanup_git &&
git p4 clone --dest="$git" //depot &&
(
@@ -107,7 +107,7 @@ test_expect_failure 'chmod with lock taken' '
)
'
-test_expect_failure 'copy with lock taken' '
+test_expect_success 'copy with lock taken' '
lock_in_another_client &&
test_when_finished cleanup_git &&
test_when_finished "cd \"$cli\" && p4 revert file2 && rm -f file2" &&