Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2012-04-30 04:57:16 +0400
committerJunio C Hamano <gitster@pobox.com>2012-05-01 03:00:04 +0400
commitb6ad6dcc3b0629d525abc9fe0882e1b0eb969e17 (patch)
tree9f00b39820b05293dd65097c8aaf5823c77654ea /t/t9807-git-p4-submit.sh
parent0f224e5b73a73f37887eb7cb3e51073f889a3f9c (diff)
git p4: fix writable file after rename or copy
The way rename works is with a "p4 integrate", optionally followed by a "p4 edit" if the change is not a 100% rename. Contents are generated by applying a patch, not doing a file system rename. Copy is similar. In this case, p4 does not fix the permissions back to read-only. Make sure this happens by calling "p4 sync -f". Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9807-git-p4-submit.sh')
-rwxr-xr-xt/t9807-git-p4-submit.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/t9807-git-p4-submit.sh b/t/t9807-git-p4-submit.sh
index a2499ee024..f23b4c3620 100755
--- a/t/t9807-git-p4-submit.sh
+++ b/t/t9807-git-p4-submit.sh
@@ -158,7 +158,8 @@ test_expect_success 'submit copy' '
) &&
(
cd "$cli" &&
- test_path_is_file file5.ta
+ test_path_is_file file5.ta &&
+ test ! -w file5.ta
)
'
@@ -176,7 +177,8 @@ test_expect_success 'submit rename' '
(
cd "$cli" &&
test_path_is_missing file6.t &&
- test_path_is_file file6.ta
+ test_path_is_file file6.ta &&
+ test ! -w file6.ta
)
'