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

Make `vcsh clone` work with older git versions

1.7.7 is happy without parameters, 1.7.0.8 needs origin master
parent 6f91211d
Branches
Tags
No related merge requests found
...@@ -64,7 +64,7 @@ clone() { ...@@ -64,7 +64,7 @@ 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 [ -z $(git ls-remote 2> /dev/null) ]; then if [ $(git ls-remote origin master 2> /dev/null | wc -l ) -lt 1 ]; then
info "remote is empty, not merging anything" info "remote is empty, not merging anything"
exit exit
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment