1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-03 00:57:52 +02:00

Drop stash when successfully unstashing files after moving patch to index

This commit is contained in:
Stefan Haller
2025-07-01 14:25:50 +02:00
parent 823aa640b9
commit 32bd9e6029
2 changed files with 1 additions and 6 deletions

View File

@ -259,7 +259,7 @@ func (self *PatchCommands) MovePatchIntoIndex(commits []*models.Commit, commitId
}
if stash {
if err := self.stash.Apply(0); err != nil {
if err := self.stash.Pop(0); err != nil {
return err
}
}