From 327b8cee9eaeb17724c7b5daa686e736f7d3b5e4 Mon Sep 17 00:00:00 2001 From: Jwd-gity <280797544+Jwd-gity@users.noreply.github.com> Date: Tue, 12 May 2026 18:45:20 -0700 Subject: [PATCH] fix(install): use stash@{0} instead of git rev-parse refs/stash for autostash recovery Autostash creates refs/stash as a pointer to the latest stash commit, but git stash apply/drop expect the symbolic ref format like stash@{0}, not the raw commit SHA. Using the commit SHA causes: error: 'X is not a stash reference' --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index aaa810f3c83..72cc81637da 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -890,7 +890,7 @@ clone_repo() { stash_name="hermes-install-autostash-$(date -u +%Y%m%d-%H%M%S)" log_info "Local changes detected, stashing before update..." git stash push --include-untracked -m "$stash_name" - autostash_ref="$(git rev-parse --verify refs/stash)" + autostash_ref="stash@{0}" fi git fetch origin