From 3d95bf074e8532fd0643b886422eddd0768a3f2c Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 5 Nov 2005 11:44:35 -0800 Subject: [PATCH] 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 --- git-clone.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git-clone.sh b/git-clone.sh index c27a913b1..1adf60417 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -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" -- 2.26.2