fix<Repository>: -r is needed when remove a path from git

This commit is contained in:
leo 2021-04-12 10:27:58 +08:00
parent 3edb8bf2dd
commit 6356520e94

View file

@ -985,7 +985,7 @@ namespace SourceGit.Git {
if (errs != null) { if (errs != null) {
App.RaiseError(errs); App.RaiseError(errs);
} else { } else {
errs = RunCommand($"rm -f {path}", null); errs = RunCommand($"rm -rf {path}", null);
if (errs != null) App.RaiseError(errs); if (errs != null) App.RaiseError(errs);
OnWorkingCopyChanged?.Invoke(); OnWorkingCopyChanged?.Invoke();