public bool IsSubmodule(string submodulePath)
{
var result = RunGitCmdResult("submodule status " + submodulePath);
if (result.ExitCode == 0
// submodule removed
|| result.StdError.StartsWith("No submodule mapping found in .gitmodules for path"))
return true;
return false;
}