author | Mark Hills <mark@pogo.org.uk> | |
Mon, 5 May 2008 16:46:42 +0000 (17:46 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 7 May 2008 04:34:35 +0000 (21:34 -0700) | ||
commit | c904bf392d7621b04c14bb9b2e93c3ed08f7e57b | |
tree | 42833d3597231b5e37d154166b4b62e44ba49396 | tree | snapshot |
parent | 867fa20fe929942fba2345adc591e6f5c74f8c11 | commit | diff |
Be more careful with objects directory permissions on clone
Honour the setgid and umask when re-creating the objects directory
at the destination.
cpio in copy-pass mode aims to copy file permissions which causes this
problem and cannot be disabled. Be explicit by copying the directory
structure first, honouring the permissions at the destination, then copy
the files with 0444 permissions. This also avoids bugs in some versions
of cpio.
Signed-off-by: Mark Hills <mark@pogo.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Honour the setgid and umask when re-creating the objects directory
at the destination.
cpio in copy-pass mode aims to copy file permissions which causes this
problem and cannot be disabled. Be explicit by copying the directory
structure first, honouring the permissions at the destination, then copy
the files with 0444 permissions. This also avoids bugs in some versions
of cpio.
Signed-off-by: Mark Hills <mark@pogo.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-clone.sh | diff | blob | history |