Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(hooks): resolve python3 on macOS/Linux so pre-push gates actually run

Ruben Lütke255f7e1ab216
diff --git a/.githooks/pre-push b/.githooks/pre-push
index d97a2eba3c..582f8ddfdb 100755
--- a/.githooks/pre-push
+++ b/.githooks/pre-push
@@ -39,10 +39,11 @@ remote_name="$1"
remote_url="$2"
# Prefer the known-good interpreter (a bare 'python' may be a deps-less venv on
-# this machine); fall back to whatever 'python' resolves to. Both gates are
-# stdlib + git only, so any Python 3.x works. No Python at all -> fail OPEN.
+# this machine); fall back to python3 (macOS/Linux boxes often ship ONLY
+# python3), then python. The gates are stdlib + git only, so any Python 3.x
+# works. No Python at all -> fail OPEN.
PY="/c/Program Files/Python311/python.exe"
-[ -x "$PY" ] || PY="$(command -v python 2>/dev/null)"
+[ -x "$PY" ] || PY="$(command -v python3 2>/dev/null || command -v python 2>/dev/null)"
[ -n "$PY" ] || exit 0
# Read all pushed refs from stdin FIRST (into a temp file), so each gate's own