X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/b4bee06a2de5d74f9b1de64ffbb464e235a3194a..deec8de709a933763e7344c3a7be54ae0be5577c:/vcsh diff --git a/vcsh b/vcsh index 5d5628e..6ce5320 100755 --- a/vcsh +++ b/vcsh @@ -152,12 +152,12 @@ clone() { exit fi git fetch - for object in $(git ls-tree -r origin/master | awk '{print $4}'); do + git ls-tree -r --name-only origin/master | (while read object; do [ -e "$object" ] && error "'$object' exists." && VCSH_CONFLICT=1 done - [ "$VCSH_CONFLICT" = '1' ] && + [ "$VCSH_CONFLICT" = '1' ]) && fatal "will stop after fetching and not try to merge! Once this situation has been resolved, run 'vcsh run $VCSH_REPO_NAME git pull' to finish cloning." 17 git merge origin/master