mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
fix(tooling): resume PR checkouts after completed deletions (#130630)
This commit is contained in:
committed by
GitHub
parent
47fe3cc8fc
commit
372850d59f
@@ -163,8 +163,10 @@ recover_review_transition() {
|
||||
fi
|
||||
|
||||
validate_review_transition_state "$pr" "$source" "$target" || return 1
|
||||
if ! git diff --quiet "$source" "$target"; then
|
||||
git diff --name-only --no-renames -z "$source" "$target" |
|
||||
# Completed deletions are absent from both index and target, so replay only
|
||||
# remaining entries rather than passing already-removed paths to restore.
|
||||
if ! git diff --cached --quiet "$target"; then
|
||||
git diff --cached --name-only --no-renames -z "$target" |
|
||||
git --literal-pathspecs restore --source="$target" --staged --worktree \
|
||||
--pathspec-from-file=- --pathspec-file-nul || return 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user