mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-31 23:19:40 +02:00
477 Remove duplicate checkout
We already checout the file calling `c.DiscardUnstagedFileChanges`
This commit is contained in:
parent
212327d746
commit
823b436b53
@ -476,11 +476,6 @@ func (c *GitCommand) DiscardAllFileChanges(file *File) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if file.HasMergeConflicts || file.HasInlineMergeConflicts {
|
|
||||||
if err := c.OSCommand.RunCommand(fmt.Sprintf("git checkout -- %s", quotedFileName)); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if !file.Tracked {
|
if !file.Tracked {
|
||||||
return c.removeFile(file.Name)
|
return c.removeFile(file.Name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user