]> git.ipfire.org Git - thirdparty/git.git/commit - git-p4.py
git p4: fix writable file after rename or copy
authorPete Wyckoff <pw@padd.com>
Mon, 30 Apr 2012 00:57:16 +0000 (20:57 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Apr 2012 23:00:04 +0000 (16:00 -0700)
commitb6ad6dcc3b0629d525abc9fe0882e1b0eb969e17
tree9f00b39820b05293dd65097c8aaf5823c77654ea
parent0f224e5b73a73f37887eb7cb3e51073f889a3f9c
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>
git-p4.py
t/t9807-git-p4-submit.sh
t/t9809-git-p4-client-view.sh