From 344a6036655784ffff9c306daadb005f3afe0d6e Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 10 Apr 2021 14:45:59 +0800 Subject: [PATCH] fix: fix bad regex to parse submodule name --- src/Git/Repository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Git/Repository.cs b/src/Git/Repository.cs index 52df196f..550f14e8 100644 --- a/src/Git/Repository.cs +++ b/src/Git/Repository.cs @@ -922,7 +922,7 @@ namespace SourceGit.Git { /// /// public List Submodules() { - var test = new Regex(@"^[\-\+ ][0-9a-f]+\s(.*)\(.*\)$"); + var test = new Regex(@"^[\-\+ ][0-9a-f]+\s(.*)\s\(.*\)$"); var modules = new List(); var errs = RunCommand("submodule status", line => {