Fix minor issue with master 2 main

This commit is contained in:
niksedk 2022-09-07 20:18:38 +02:00
parent 1bc1eeee63
commit 2623a3a5f1

View File

@ -254,7 +254,7 @@ namespace UpdateAssemblyInfo
{
currentRepositoryVersion = new VersionInfo(); // no git repository
}
if (clrHash.RunCommandAndGetOutput(gitPath, "rev-parse --verify refs/heads/master", workingDirectory) && clrTags.RunCommandAndGetOutput(gitPath, "describe --long --tags refs/heads/master", workingDirectory))
if (clrHash.RunCommandAndGetOutput(gitPath, "rev-parse --verify refs/heads/main", workingDirectory) && clrTags.RunCommandAndGetOutput(gitPath, "describe --long --tags refs/heads/main", workingDirectory))
{
if (!LongGitTagRegex.IsMatch(clrTags.Result) && !ShortGitTagRegex.IsMatch(clrTags.Result))
{