Skip to content

Commit 47a9f8c

Browse files
committed
Link to requirements documentation in error message about shallow repository clones
1 parent 62438bc commit 47a9f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersion.Core/Core/GitPreparer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private void NormalizeGitDirectory(bool noFetch, string? currentBranchName, bool
186186

187187
if (this.repository.IsShallow)
188188
{
189-
throw new WarningException("Repository is a shallow clone. Git repositories must be contain the full history.");
189+
throw new WarningException("Repository is a shallow clone. Git repositories must contain the full history. See https://gitversion.net/docs/reference/requirements#unshallow for more info.");
190190
}
191191
}
192192

0 commit comments

Comments
 (0)