1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-30 13:57:54 +01:00

git-clone: fix local clone

If we let cpio to create the leading directories implicitly,
it ends up having funny perm bits (GNU cpio 2.5 and 2.6, at least).
This leaves .git/object/?? directories readable only by the owner.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-11-05 11:44:35 -08:00
parent 32276c8059
commit 3d95bf074e

View file

@ -126,8 +126,7 @@ yes,yes)
fi &&
rm -f "$D/.git/objects/sample" &&
cd "$repo" &&
find objects -type f -print |
cpio -puamd$l "$D/.git/" || exit 1
find objects -depth -print | cpio -puamd$l "$D/.git/" || exit 1
;;
yes)
mkdir -p "$D/.git/objects/info"