mirror of
https://github.com/cmderdev/cmder.git
synced 2025-12-16 10:41:38 +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)"
|
Write-Warning "Failed to auto-merge: $($_.Exception.Message)"
|
||||||
|
|
||||||
# Reset only if a commit was made (check if HEAD moved)
|
# Reset the commit if one was made
|
||||||
$headBeforeReset = git rev-parse HEAD
|
|
||||||
if ($commitResult) {
|
if ($commitResult) {
|
||||||
git reset --hard HEAD~1
|
git reset --hard HEAD~1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user