mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-07 07:19:57 +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
|
||||
}
|
||||
}
|
||||
if file.HasMergeConflicts || file.HasInlineMergeConflicts {
|
||||
if err := c.OSCommand.RunCommand(fmt.Sprintf("git checkout -- %s", quotedFileName)); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if !file.Tracked {
|
||||
return c.removeFile(file.Name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user