Re: Git benchmark - comparison with Bazaar, Darcs, Git and Mercurial

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/1/07, Alex Riesen <raa.lkml@xxxxxxxxx> wrote:
> On 8/1/07, Alex Riesen <raa.lkml@xxxxxxxxx> 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" &&
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux