Skip to content

Commit

Permalink
vcsh: Improve clone() error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
RichiH committed Oct 25, 2014
1 parent bad560c commit be1c81e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vcsh
Expand Up @@ -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"
Expand Down

0 comments on commit be1c81e

Please sign in to comment.