X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/f0d6c7a599601ae84dca82c2b90db058821f8174..80fb228314fd57923f18eda30ed52148a98400fd:/vcsh diff --git a/vcsh b/vcsh index ec0301f..990a234 100755 --- a/vcsh +++ b/vcsh @@ -64,6 +64,10 @@ clone() { git remote add origin "$GIT_REMOTE" git config branch.master.remote origin git config branch.master.merge refs/heads/master + if [ $(git ls-remote origin master 2> /dev/null | wc -l ) -lt 1 ]; then + info "remote is empty, not merging anything" + exit + fi git fetch for object in $(git ls-tree -r origin/master | awk '{print $4}'); do [ -e "$object" ] &&