[PATCH] Don't use cpio in git-clone when not installed
- From
Mike Hommey <mh@glandium.org>
- Date
- Oct 31, 2007, 20:05 UTC
- Message-ID
- <1193861145-20357-1-git-send-email-mh@glandium.org>
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