Skip to content

Commit 6e88a73

Browse files
committed
Submodules exception when there are no submodules :)
1 parent 416e2a1 commit 6e88a73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Editor/WiseGitIntegration.cs

+4
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,10 @@ public static IEnumerable<string> ListAllSubmodulePaths(int timeout = ONLINE_COM
14441444
yield break;
14451445
}
14461446

1447+
if (string.IsNullOrWhiteSpace(result.Output)) {
1448+
yield break;
1449+
}
1450+
14471451
var output = result.Output.Replace("\r", "");
14481452
foreach(string line in output.Split('\n')) {
14491453
// NOTE that first character can be space, -, +, or U.

0 commit comments

Comments
 (0)