From eb2c07b2b698c32066cd8e9f61c205b9dd514dc2 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 11 Aug 2021 15:03:08 +0800 Subject: [PATCH] fix: fix crash reported by https://gitee.com/sourcegit/sourcegit/issues/I44XU1 --- src/Views/Widgets/Dashboard.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Widgets/Dashboard.xaml.cs b/src/Views/Widgets/Dashboard.xaml.cs index 98c5b6e3..47ee131d 100644 --- a/src/Views/Widgets/Dashboard.xaml.cs +++ b/src/Views/Widgets/Dashboard.xaml.cs @@ -1102,7 +1102,7 @@ namespace SourceGit.Views.Widgets { if (Directory.Exists(rebaseTempFolder)) Directory.Delete(rebaseTempFolder); var rebaseFile = Path.Combine(repo.GitDir, "REBASE_HEAD"); - if (File.Exists(rebaseFile)) Directory.Delete(rebaseFile); + if (File.Exists(rebaseFile)) File.Delete(rebaseFile); var rebaseMergeFolder = Path.Combine(repo.GitDir, "rebase-merge"); if (Directory.Exists(rebaseMergeFolder)) Directory.Delete(rebaseMergeFolder);