You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The prune step piped 'git diff --name-only' into a while loop that ran
'git checkout' per file. The streaming diff refreshes the index and holds
.git/index.lock while the loop's checkout tries to write it, racing and
failing with 'Unable to create index.lock: File exists' (exit 128).
Materialise each file list fully before any checkout, set GIT_OPTIONAL_LOCKS=0
so read-only diffs never take the lock, and batch the reverts into a single
xargs git checkout call.
Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
0 commit comments