aboutsummaryrefslogtreecommitdiff
path: root/bin/zigup
diff options
context:
space:
mode:
authorAlec Goncharow <alec@goncharow.dev>2024-02-28 16:29:59 -0500
committerAlec Goncharow <alec@goncharow.dev>2024-02-28 16:29:59 -0500
commit68677e4b0faec5b746a27bec036477ebf718f3c0 (patch)
tree5c9e8883a5fac8479302109324890c2b1ec3d9b2 /bin/zigup
parent7b68e7fc57b741d053698dd5e21c1833b151e377 (diff)
sync
Diffstat (limited to 'bin/zigup')
-rwxr-xr-xbin/zigup6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/zigup b/bin/zigup
index 7aa7fca..1ca48d4 100755
--- a/bin/zigup
+++ b/bin/zigup
@@ -73,11 +73,11 @@ install_zls() {
zls_path="$zig_root/zls"
if [ ! -d "$zls_path" ]; then
echo "cloning zls"
- git clone https://github.com/zigtools/zls.git "$zls_path"
+ git clone https://github.com/zigtools/zls.git "$zls_path" --depth 1 --single-branch --branch master
fi
cd "$zls_path"
- echo "pulling zls"
- git pull
+ echo "fetching zls"
+ git fetch origin master:master --depth 1
echo "building zls"
zig build -Doptimize=ReleaseSafe