fix<Repository>: fix bad regex to parse submodule name

This commit is contained in:
leo 2021-04-10 14:45:59 +08:00
parent 3811f3ceed
commit 344a603665

View file

@ -922,7 +922,7 @@ namespace SourceGit.Git {
/// </summary>
/// <returns></returns>
public List<string> Submodules() {
var test = new Regex(@"^[\-\+ ][0-9a-f]+\s(.*)\(.*\)$");
var test = new Regex(@"^[\-\+ ][0-9a-f]+\s(.*)\s\(.*\)$");
var modules = new List<string>();
var errs = RunCommand("submodule status", line => {