You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/GitVersion.Core.Tests/Core/GitVersionExecutorTests.cs
+73Lines changed: 73 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -597,6 +597,79 @@ public void CalculateVersionVariables_ShallowFetch_ThrowException()
597
597
exception?.Message.ShouldBe("Repository is a shallow clone. Git repositories must contain the full history. See https://gitversion.net/docs/reference/requirements#unshallow for more info.");
thrownewWarningException("Repository is a shallow clone. Git repositories must contain the full history. See https://gitversion.net/docs/reference/requirements#unshallow for more info.");
193
+
if(this.options.Value.Settings.AllowShallow)
194
+
{
195
+
this.log.Info("Repository is a shallow clone. GitVersion will continue, but it is recommended to use a full clone for accurate versioning.");
196
+
}
197
+
else
198
+
{
199
+
thrownewWarningException("Repository is a shallow clone. Git repositories must contain the full history. See https://gitversion.net/docs/reference/requirements#unshallow for more info.");
0 commit comments