mirror of
https://github.com/cmderdev/cmder.git
synced 2025-12-15 18:21:39 +08:00
Remove unused $headBeforeReset variable
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
This commit is contained in:
3
.github/workflows/vendor.yml
vendored
3
.github/workflows/vendor.yml
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user