X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/8260b8ec02317989a83e44577d36b42c6276d732..6f91211dc0410339d678e5489eb6fd14b4251c87:/vcsh diff --git a/vcsh b/vcsh index ec0301f..4979d71 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 [ -z $(git ls-remote 2> /dev/null) ]; 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" ] &&