From 97ad5015e89ca3eef902667bf8d6b6261cc82d7e Mon Sep 17 00:00:00 2001 From: ethernet Date: Tue, 22 Sep 2026 17:35:21 -0400 Subject: [PATCH] fix(activate): tolerate non-git fixture checkouts --- activate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activate b/activate index 6e40f1380a..43813e985d 100755 --- a/activate +++ b/activate @@ -90,7 +90,7 @@ for k, v in json.load(sys.stdin).items(): # alias, and a hashed command, including the MSIX execution alias. __HERMES_WORKTREE="$_hermes_repo" # The branch names the worktree. A checkout cannot share a branch with another. -__HERMES_WORKTREE_NAME="$(git -C "$_hermes_repo" rev-parse --abbrev-ref HEAD 2>/dev/null)" +__HERMES_WORKTREE_NAME="$(git -C "$_hermes_repo" rev-parse --abbrev-ref HEAD 2>/dev/null || :)" if [ -z "$__HERMES_WORKTREE_NAME" ] || [ "$__HERMES_WORKTREE_NAME" = HEAD ]; then __HERMES_WORKTREE_NAME="$(basename "$_hermes_repo")" fi