Try doing a mixed reset.
This commit is contained in:
parent
6d3646e399
commit
2573896523
|
@ -69,7 +69,7 @@ func updater(scanner *bufio.Scanner) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// The unstaged files are particularly resistant, so blast them away at full force
|
// The unstaged files are particularly resistant, so blast them away at full force
|
||||||
err = workTree.Reset(&git.ResetOptions{Mode: git.HardReset})
|
err = workTree.Reset(&git.ResetOptions{Mode: git.MixedReset})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return logError(err)
|
return logError(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue