diff options
| author | Jeff Carr <[email protected]> | 2025-08-17 23:24:37 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-17 23:24:37 -0500 |
| commit | 631544356a3946933711e47b96a48f883b2c70a8 (patch) | |
| tree | ad1035f16fe86ca3a5b277be6c528edc81d2eab3 /windowPatches.go | |
| parent | 212c706e145cd5804b539cdb57b6972aaafc478d (diff) | |
attempt git am --abortv0.22.126
Diffstat (limited to 'windowPatches.go')
| -rw-r--r-- | windowPatches.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/windowPatches.go b/windowPatches.go index 3eb1d7b..470ca10 100644 --- a/windowPatches.go +++ b/windowPatches.go @@ -94,6 +94,8 @@ func makePatchesWin(patches *forgepb.Patches) *stdPatchTableWin { } count += 1 if err := applyPatch(repo, filename); err != nil { + cmd := []string{"git", "am", "--abort"} + err := repo.RunVerbose(cmd) log.Info("warn user of git am error", err) return } @@ -124,6 +126,8 @@ func applyPatchNew(p *forgepb.Patch) error { } if err := applyPatch(repo, filename); err != nil { log.Info("warn user of git am error", err) + cmd := []string{"git", "am", "--abort"} + err := repo.RunVerbose(cmd) return err } return nil |
