git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Don't use cpio in git-clone when not installed
@ 2007-10-31 20:05 Mike Hommey
  2007-10-31 20:10 ` Mike Hommey
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Mike Hommey @ 2007-10-31 20:05 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano


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

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-11-01 21:07 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-31 20:05 [PATCH] Don't use cpio in git-clone when not installed Mike Hommey
2007-10-31 20:10 ` Mike Hommey
2007-10-31 22:29 ` Junio C Hamano
2007-10-31 23:55   ` Johannes Schindelin
2007-11-01  0:46 ` Linus Torvalds
2007-11-01  1:00   ` Jakub Narebski
2007-11-01  1:05   ` Nguyen Thai Ngoc Duy
2007-11-01  1:12   ` Junio C Hamano
2007-11-01  6:31   ` Mike Hommey
2007-11-01 13:06   ` Alexander Skwar
2007-11-01  1:09 ` Nguyen Thai Ngoc Duy
2007-11-01  1:15   ` Junio C Hamano
2007-11-01  1:25     ` Nguyen Thai Ngoc Duy
2007-11-01  6:45       ` Junio C Hamano
2007-11-01 10:53     ` Mike Hommey
2007-11-01 21:06       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).