public string GetTagMessage(string tag)
{
if (string.IsNullOrWhiteSpace(tag))
return null;
tag = tag.Trim();
string info = RunGitCmd("tag -l -n10 " + tag, SystemEncoding);
if (info.Trim().StartsWith("fatal") || info.Trim().StartsWith("error:"))
return null;
if (!info.StartsWith(tag))
return null;
info = info.Substring(tag.Length).Trim();
if (info.Length == 0)
return null;
return info;
}