pvsscript: Use git clone and not git worktree

This commit is contained in:
ZyX 2017-04-10 13:42:31 +03:00
parent 59f0cbc282
commit 3bd11f2911

View File

@ -80,13 +80,13 @@ main() {
if test "x$1" = "x--help" ; then if test "x$1" = "x--help" ; then
help help
return 0 return
fi fi
local tgt="${1:-$PWD/../neovim-pvs}" local tgt="${1:-$PWD/../neovim-pvs}"
local branch="${2:-master}" local branch="${2:-master}"
git worktree add "$tgt" "$branch" git clone --depth=1 --branch="$branch" . "$tgt"
cd "$tgt" cd "$tgt"