From 6356520e940f99d9d0be96a0fcf29f0b5dd60d02 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 12 Apr 2021 10:27:58 +0800 Subject: [PATCH] fix: `-r` is needed when remove a path from git --- src/Git/Repository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Git/Repository.cs b/src/Git/Repository.cs index bbbf5133..e16f202f 100644 --- a/src/Git/Repository.cs +++ b/src/Git/Repository.cs @@ -985,7 +985,7 @@ namespace SourceGit.Git { if (errs != null) { App.RaiseError(errs); } else { - errs = RunCommand($"rm -f {path}", null); + errs = RunCommand($"rm -rf {path}", null); if (errs != null) App.RaiseError(errs); OnWorkingCopyChanged?.Invoke();