From 69bea5955697c45cef153d4e8cb7ea253b91e240 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Sun, 31 May 2026 00:41:33 -0500 Subject: [PATCH] fix(install): detect xcode-select git stub on fresh macOS --- scripts/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index f0b016f8a58..8af1c14f0ec 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -757,7 +757,8 @@ attempt_install_git() { check_git() { log_info "Checking Git..." - if command -v git &> /dev/null; then + # On fresh macOS /usr/bin/git is a stub that exits non-zero until CLT is installed. + if command -v git &> /dev/null && git --version &> /dev/null; then GIT_VERSION=$(git --version | awk '{print $3}') log_success "Git $GIT_VERSION found" return 0