Reorganize container helper files

Group the Git helper scripts under a container-specific directory so container integration is easier to understand and mount.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
严浩
2026-03-08 17:51:12 +08:00
parent f90673cb3a
commit 65c4799a05
3 changed files with 163 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/sh
set -eu
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
if [ -n "${GIT_CRED_PROXY_RUNTIME:-}" ]; then
exec "$GIT_CRED_PROXY_RUNTIME" "$script_dir/helper.mjs" "$@"
fi
if command -v bun >/dev/null 2>&1; then
exec bun "$script_dir/helper.mjs" "$@"
fi
if command -v node >/dev/null 2>&1; then
exec node "$script_dir/helper.mjs" "$@"
fi
printf 'Either bun or node is required to run git-credential-hostproxy\n' >&2
exit 1