Skip to content

Commit 3f070e2

Browse files
committed
Print the sha which was excluded from version calculation
1 parent 5e3d9ea commit 3f070e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersionCore/VersionFilters/ShaVersionFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public bool Exclude(BaseVersion version, out string reason)
2424
if (version.BaseVersionSource != null &&
2525
shas.Any(sha => version.BaseVersionSource.Sha.StartsWith(sha, StringComparison.OrdinalIgnoreCase)))
2626
{
27-
reason = "Source was ignored due to commit having been excluded by configuration";
27+
reason = $"Sha {version.BaseVersionSource.Sha} was ignored due to commit having been excluded by configuration";
2828
return true;
2929
}
3030

0 commit comments

Comments
 (0)