fix: prevent executing an executable file with the same name as the directory

This commit is contained in:
Chiahong Hong 2024-08-22 00:57:23 +08:00
parent 323dc2e87f
commit fd7bc8b122
No known key found for this signature in database
GPG key ID: 77021906D88E7150

View file

@ -183,6 +183,7 @@ namespace SourceGit.Native
else else
{ {
fullpath = new DirectoryInfo(path!).FullName; fullpath = new DirectoryInfo(path!).FullName;
fullpath += Path.DirectorySeparatorChar;
} }
if (select) if (select)