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:
@ -259,7 +259,7 @@ func (self *PatchCommands) MovePatchIntoIndex(commits []*models.Commit, commitId
|
|||||||
}
|
}
|
||||||
|
|
||||||
if stash {
|
if stash {
|
||||||
if err := self.stash.Apply(0); err != nil {
|
if err := self.stash.Pop(0); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,11 +54,6 @@ var MoveToIndexWithModifiedFile = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
t.Views().Secondary().
|
t.Views().Secondary().
|
||||||
Content(Contains("-1\n+11\n"))
|
Content(Contains("-1\n+11\n"))
|
||||||
|
|
||||||
/* EXPECTED:
|
|
||||||
t.Views().Stash().IsEmpty()
|
t.Views().Stash().IsEmpty()
|
||||||
ACTUAL: */
|
|
||||||
t.Views().Stash().Lines(
|
|
||||||
Contains("Auto-stashing changes"),
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user