]> git.ipfire.org Git - thirdparty/git.git/commit
git p4: cygwin p4 client does not mark read-only
authorPete Wyckoff <pw@padd.com>
Sun, 27 Jan 2013 03:11:17 +0000 (22:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 27 Jan 2013 06:00:39 +0000 (22:00 -0800)
commite9df0f9c7a7fbaed924273d0a9b502171ed23b7c
treeefc692207e049a3ddfc3403c3ab190127563a6a1
parent9d01ae9f20435b90619c909e9cbb9ca29f7de494
git p4: cygwin p4 client does not mark read-only

There are some old versions of p4, compiled for cygwin, that
treat read-only files differently.

Normally, a file that is not open is read-only, meaning that
"test -w" on the file is false.  This works on unix, and it works
on windows using the NT version of p4.  The cygwin version
of p4, though, changes the permissions, but does not set the
windows read-only attribute, so "test -w" returns false.

Notice this oddity and make the tests work, even on cygiwn.

Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-git-p4.sh
t/t9807-git-p4-submit.sh
t/t9809-git-p4-client-view.sh