[PATCH] Don't use cpio in git-clone when not installed

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: Junio C Hamano <gitster@...>
Date: Wednesday, October 31, 2007 - 4:05 pm

Signed-off-by: Mike Hommey <mh@glandium.org>
---
 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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Don't use cpio in git-clone when not installed, Mike Hommey, (Wed Oct 31, 4:05 pm)
Re: [PATCH] Don't use cpio in git-clone when not installed, Nguyen Thai Ngoc Duy, (Wed Oct 31, 9:09 pm)
Re: [PATCH] Don't use cpio in git-clone when not installed, Junio C Hamano, (Wed Oct 31, 9:15 pm)
Re: [PATCH] Don't use cpio in git-clone when not installed, Nguyen Thai Ngoc Duy, (Wed Oct 31, 9:25 pm)
Re: [PATCH] Don't use cpio in git-clone when not installed, Linus Torvalds, (Wed Oct 31, 8:46 pm)
Re: [PATCH] Don't use cpio in git-clone when not installed, Junio C Hamano, (Wed Oct 31, 9:12 pm)
Re: [PATCH] Don't use cpio in git-clone when not installed, Nguyen Thai Ngoc Duy, (Wed Oct 31, 9:05 pm)
Re: [PATCH] Don't use cpio in git-clone when not installed, Junio C Hamano, (Wed Oct 31, 6:29 pm)
Re: [PATCH] Don't use cpio in git-clone when not installed, Johannes Schindelin, (Wed Oct 31, 7:55 pm)