From 4bc167e4239503d33d67e3bae66e1b2ff1934d77 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 21 Sep 2019 18:27:53 +0000 Subject: [PATCH] urepo: Git dir fix git-svn-id: svn://ultimatepp.org/upp/trunk@13612 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/urepo/RepoSync.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uppsrc/urepo/RepoSync.cpp b/uppsrc/urepo/RepoSync.cpp index 6bbefa97e..bd8a0b82a 100644 --- a/uppsrc/urepo/RepoSync.cpp +++ b/uppsrc/urepo/RepoSync.cpp @@ -140,6 +140,8 @@ bool RepoSync::ListGit(const String& path) for(int i = 0; i < ln.GetCount(); i++) { String h = ln[i]; if(h.GetCount() > 3) { + if(!h.TrimEnd("/")) + h.TrimEnd("\\"); String file = AppendFileName(path, h.Mid(3)); actions = true; int action = String("M.?DR").Find(h[1]);