From fd7bc8b1228a8a5fe348dcce6d4ed28d4c021e84 Mon Sep 17 00:00:00 2001 From: Chiahong Hong Date: Thu, 22 Aug 2024 00:57:23 +0800 Subject: [PATCH] fix: prevent executing an executable file with the same name as the directory --- src/Native/Windows.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Native/Windows.cs b/src/Native/Windows.cs index 7609fe7b..a48efe0a 100644 --- a/src/Native/Windows.cs +++ b/src/Native/Windows.cs @@ -183,6 +183,7 @@ namespace SourceGit.Native else { fullpath = new DirectoryInfo(path!).FullName; + fullpath += Path.DirectorySeparatorChar; } if (select)