From: Nguyen Thai Ngoc Duy Date: Thu, 01 Nov 2007 01:09:20 GMT Subject: Re: [PATCH] Don't use cpio in git-clone when not installed Message-ID: In-Reply-To: <1193861145-20357-1-git-send-email-mh@glandium.org> BTW, you have workaround for git-merge also? It uses cpio to save/restore state. On 11/1/07, Mike Hommey wrote: > > Signed-off-by: Mike Hommey > --- > git-clone.sh | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/git-clone.sh b/git-clone.sh > index 0ea3c24..57e96ae 100755 > --- a/git-clone.sh > +++ b/git-clone.sh > @@ -191,7 +191,9 @@ fi > # it is local > if base=$(get_repo_base "$repo"); then > repo="$base" > - local=yes > + if type cpio > /dev/null 2>&1; then > + local=yes > + fi > fi > > dir="$2" > -- > 1.5.3.4 > > - > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Duy