Thread (18 messages) flat view 18 messages, 12 authors, 2016-06-15

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

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:43:45

BTW, you have workaround for git-merge also? It uses cpio to save/restore state.

On 11/1/07, Mike Hommey [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Signed-off-by: Mike Hommey <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help