Skip to content

Commit

Permalink
git-clone: fix local clone
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Nov 5, 2005
1 parent 32276c8 commit 3d95bf0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3d95bf0

Please sign in to comment.