summaryrefslogtreecommitdiff
path: root/scripts/package-codex-plugin.sh
diff options
context:
space:
mode:
authorDrew Ritter <drew@ritter.dev>2026-11-02 14:39:13 -0800
committerGitHub <noreply@github.com>2026-11-02 14:39:13 -0800
commitcdeb32c955964723c09f7191db8f81f426ddbab8 (patch)
treeda43c1c56fb9fe223008e6f3e16d8ff8be0de33c /scripts/package-codex-plugin.sh
parent4e08cb1469a23f82d7024d6c493f618a5e54bd0e (diff)
parentf713233eee9143d0a798976fd0d11609f91c0b5c (diff)
Merge pull request #2609 from obra/fix/codex-scripts-in-worktrees
fix(codex): accept linked git worktrees in the package and sync scripts
Diffstat (limited to 'scripts/package-codex-plugin.sh')
-rwxr-xr-xscripts/package-codex-plugin.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package-codex-plugin.sh b/scripts/package-codex-plugin.sh
index 5308e28..fe90862 100755
--- a/scripts/package-codex-plugin.sh
+++ b/scripts/package-codex-plugin.sh
@@ -140,7 +140,7 @@ if [[ "$FORMAT" == "zip" ]]; then
command -v unzip >/dev/null || die "unzip not found in PATH"
fi
-[[ -d "$REPO_ROOT/.git" ]] || die "repo root is not a git checkout: $REPO_ROOT"
+[[ -e "$REPO_ROOT/.git" ]] || die "repo root is not a git checkout: $REPO_ROOT"
git -C "$REPO_ROOT" rev-parse --verify "$REF^{commit}" >/dev/null ||
die "git ref does not resolve to a commit: $REF"