mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-15 11:56:37 +02:00
Change expected sha for DiscardOldFileChanges
This commit is contained in:
parent
7ff07e1454
commit
fc3a57b5e2
@ -860,7 +860,7 @@ func (c *GitCommand) DiscardOldFileChanges(commits []*Commit, commitIndex int, f
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd, err := c.PrepareInteractiveRebaseCommand(sha+"^", todo, true)
|
cmd, err := c.PrepareInteractiveRebaseCommand(sha, todo, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -1817,7 +1817,7 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) {
|
|||||||
"test999.txt",
|
"test999.txt",
|
||||||
test.CreateMockCommand(t, []*test.CommandSwapper{
|
test.CreateMockCommand(t, []*test.CommandSwapper{
|
||||||
{
|
{
|
||||||
Expect: "git rebase --interactive --autostash 123456^",
|
Expect: "git rebase --interactive --autostash abcdef",
|
||||||
Replace: "echo",
|
Replace: "echo",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user