From 80fb228314fd57923f18eda30ed52148a98400fd Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Wed, 7 Dec 2011 23:54:38 +0100 Subject: [PATCH] Make `vcsh clone` work with older git versions 1.7.7 is happy without parameters, 1.7.0.8 needs origin master --- vcsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcsh b/vcsh index 4979d71..990a234 100755 --- a/vcsh +++ b/vcsh @@ -64,7 +64,7 @@ clone() { git remote add origin "$GIT_REMOTE" git config branch.master.remote origin git config branch.master.merge refs/heads/master - if [ -z $(git ls-remote 2> /dev/null) ]; then + if [ $(git ls-remote origin master 2> /dev/null | wc -l ) -lt 1 ]; then info "remote is empty, not merging anything" exit fi -- 2.39.2