From: Junio C Hamano Date: Tue, 06 May 2008 06:53:00 GMT Subject: Re: [PATCH] Be more careful with objects directory permissions on clone Message-ID: <7vprrzhqk3.fsf@gitster.siamese.dyndns.org> In-Reply-To: Mark Hills writes: > diff --git a/git-clone.sh b/git-clone.sh > index 8c7fc7f..9d88d1c 100755 > --- a/git-clone.sh > +++ b/git-clone.sh > @@ -334,7 +334,10 @@ yes) > fi > fi && > cd "$repo" && > - find objects -depth -print | cpio $cpio_quiet_flag -pumd$l "$GIT_DIR/" || \ > + # Create dirs using umask and permissions and destination > + find objects -type d -print | (cd "$GIT_DIR" && xargs mkdir -p) && > + # Copy existing 0444 permissions on content > + find objects ! -type d -print | cpio $cpio_quiet_flag -pumd$l "$GIT_DIR/" || \ > exit 1 Looks much better. Thanks.