mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
pvsscript: Use git clone and not git worktree
This commit is contained in:
parent
59f0cbc282
commit
3bd11f2911
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user