summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 32276c8)
raw | patch | inline | side by side (parent: 32276c8)
author | Junio C Hamano <junkio@cox.net> | |
Sat, 5 Nov 2005 19:44:35 +0000 (11:44 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 5 Nov 2005 19:44:35 +0000 (11:44 -0800) |
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>
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>
git-clone.sh | patch | blob | history |
diff --git a/git-clone.sh b/git-clone.sh
index c27a913b1ddf1474df4300dc68bebeeb06f145f1..1adf604172d5131222e152509c750f1e5a4ed9b0 100755 (executable)
--- a/git-clone.sh
+++ b/git-clone.sh
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"