Quiet Dosh update git fetches
ci / test (push) Has been cancelled
ci / remote-bench (push) Has been cancelled

This commit is contained in:
DuProcess
2026-06-12 13:59:47 -04:00
parent 4ac5d63faf
commit 063c44d971
+10 -2
View File
@@ -139,12 +139,20 @@ else
if [ -d "$update_cache/.git" ]; then if [ -d "$update_cache/.git" ]; then
[ "$quiet" = "1" ] && echo "Updating Dosh source" [ "$quiet" = "1" ] && echo "Updating Dosh source"
git -C "$update_cache" remote set-url origin "$repo" git -C "$update_cache" remote set-url origin "$repo"
git -C "$update_cache" fetch --depth 1 origin main if [ "$quiet" = "1" ]; then
git -C "$update_cache" fetch -q --depth 1 origin main
else
git -C "$update_cache" fetch --depth 1 origin main
fi
git -C "$update_cache" checkout -q -B main FETCH_HEAD git -C "$update_cache" checkout -q -B main FETCH_HEAD
else else
[ "$quiet" = "1" ] && echo "Downloading Dosh source" [ "$quiet" = "1" ] && echo "Downloading Dosh source"
rm -rf "$update_cache" rm -rf "$update_cache"
git clone --depth 1 --branch main "$repo" "$update_cache" >/dev/null if [ "$quiet" = "1" ]; then
git clone -q --depth 1 --branch main "$repo" "$update_cache" >/dev/null
else
git clone --depth 1 --branch main "$repo" "$update_cache" >/dev/null
fi
fi fi
src_dir="$update_cache" src_dir="$update_cache"
fi fi