Skip to content
Snippets Groups Projects
Commit fcd9f1bd authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Merge branch 'feature--improve_clone_errors'

parents 5432ea13 589f2baa
Branches
Tags
No related merge requests found
...@@ -149,9 +149,10 @@ clone() { ...@@ -149,9 +149,10 @@ clone() {
git remote add origin "$GIT_REMOTE" git remote add origin "$GIT_REMOTE"
git config branch.master.remote origin git config branch.master.remote origin
git config branch.master.merge refs/heads/master git config branch.master.merge refs/heads/master
if [ $(git ls-remote origin master 2> /dev/null | wc -l ) -lt 1 ]; then VCSH_CLONE_ERROR=$(git ls-remote origin master 2>&1)
info "remote is empty, not merging anything" if [ -n "$VCSH_CLONE_ERROR" ]; then
exit rm -rf "$GIT_DIR"
fatal "$VCSH_CLONE_ERROR" 1
fi fi
git fetch git fetch
hook pre-merge hook pre-merge
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment