From: Richard Hartmann Date: Sat, 25 Oct 2014 21:23:05 +0000 (+0200) Subject: vcsh: Improve clone() error handling X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/be1c81ee11c7c97d20dcb63b4f8d46febcbc875f?ds=inline vcsh: Improve clone() error handling --- diff --git a/vcsh b/vcsh index faba42c..63e726e 100755 --- a/vcsh +++ b/vcsh @@ -154,7 +154,8 @@ clone() { git config branch."$VCSH_BRANCH".remote origin git config branch."$VCSH_BRANCH".merge refs/heads/"$VCSH_BRANCH" if [ $(git ls-remote origin "$VCSH_BRANCH" 2> /dev/null | wc -l ) -lt 1 ]; then - info "remote is empty, not merging anything" + info "remote is empty, not merging anything. + You should add files to your new repository." exit fi git fetch origin "$VCSH_BRANCH"