aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/pvscheck.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/pvscheck.sh b/scripts/pvscheck.sh
index 00f2d481ea..0e1b9ba404 100755
--- a/scripts/pvscheck.sh
+++ b/scripts/pvscheck.sh
@@ -80,13 +80,13 @@ main() {
if test "x$1" = "x--help" ; then
help
- return 0
+ return
fi
local tgt="${1:-$PWD/../neovim-pvs}"
local branch="${2:-master}"
- git worktree add "$tgt" "$branch"
+ git clone --depth=1 --branch="$branch" . "$tgt"
cd "$tgt"