mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
chore: fix root_dir resolution/stale scripts during PR review
This commit is contained in:
@@ -8,7 +8,14 @@ fi
|
||||
|
||||
mode="$1"
|
||||
pr="$2"
|
||||
base="$(cd "$(dirname "$0")" && pwd)/pr"
|
||||
script_dir="$(cd "$(dirname "$0")" && pwd)"
|
||||
base="$script_dir/pr"
|
||||
if common_git_dir=$(git -C "$script_dir" rev-parse --path-format=absolute --git-common-dir 2>/dev/null); then
|
||||
canonical_base="$(dirname "$common_git_dir")/scripts/pr"
|
||||
if [ -x "$canonical_base" ]; then
|
||||
base="$canonical_base"
|
||||
fi
|
||||
fi
|
||||
|
||||
case "$mode" in
|
||||
init)
|
||||
|
||||
Reference in New Issue
Block a user