Remove unused $headBeforeReset variable

Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-15 06:22:39 +00:00
parent 400cdfed54
commit 10a0675c96

View File

@@ -219,8 +219,7 @@ jobs:
Write-Warning "Failed to auto-merge: $($_.Exception.Message)"
# Reset only if a commit was made (check if HEAD moved)
$headBeforeReset = git rev-parse HEAD
# Reset the commit if one was made
if ($commitResult) {
git reset --hard HEAD~1
}