From: Alex Riesen Date: Wed, 01 Aug 2007 13:23:08 GMT Subject: Re: Git benchmark - comparison with Bazaar, Darcs, Git and Mercurial Message-ID: <81b0412b0708010623x5248612cm78db342c04a0e633@mail.gmail.com> In-Reply-To: <81b0412b0708010620g776fb89ei574ece00ac45bf30@mail.gmail.com> On 8/1/07, Alex Riesen wrote: > On 8/1/07, Alex Riesen wrote: > > if ln "$repo/$sample_file" "$GIT_DIR/objects/sample" 2>/dev/null > > then > > + echo >&2 "Hardlinks not supported. Falling back to copy" > > l=l > > fi && > > Err, the other way around, of course. > diff --git a/git-clone.sh b/git-clone.sh index 0922554..483b91d 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -264,8 +264,10 @@ yes,yes) test -f "$repo/$sample_file" || exit l= - if ln "$repo/$sample_file" "$GIT_DIR/objects/sample" 2>/dev/null + if ! ln "$repo/$sample_file" "$GIT_DIR/objects/sample" 2>/dev/null then + echo >&2 "Hardlinks not supported. Falling back to copy" + else l=l fi && rm -f "$GIT_DIR/objects/sample" &&