ide: Fixed issue with git reposync and quoted filenames

This commit is contained in:
Mirek Fidler 2026-04-08 09:57:47 +02:00
parent 9873e8ed4c
commit 9a58835d29

View file

@ -222,7 +222,10 @@ bool RepoSync::ListGit(const String& path)
if(h.GetCount() > 3) {
if(!h.TrimEnd("/"))
h.TrimEnd("\\");
String file = AppendFileName(path, h.Mid(3));
String n = h.Mid(3);
n.TrimStart("\"");
n.TrimEnd("\"");
String file = AppendFileName(path, n);
actions = true;
int action = String("M.?DR").Find(h[1]);
if(action < 0 || h[0] != '?' && h[0] != ' ')