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
- task: gitversion-command@4.2.0
displayName: Determine Version and write wixfile
inputs:
arguments: '/config ${{parameters.configPath}} /updatewixversionfile /allowshallow'
disableShallowCloneCheck: true
and my checkout is a shallow clone as this used to work fine for our versioning concept. The issue is, that running the task within the pipeline always ends up with an error from the dotnet-gitversion command that it is a shallow clone even though I told in the arguments that this is allowed.
The command executed as part of the pipeline:
Command: E:\_work\_tool\GitVersion.Tool\6.5.1\dotnet-gitversion.exe --roll-forward Major E:\_work\243\s /config GitVersion.yml /updatewixversionfile /allowshallow
the error:
2026-01-06T08:58:11.5519878Z Repository is a shallow clone. Git repositories must contain the full history. See https://gitversion.net/docs/reference/requirements#unshallow for more info.
2026-01-06T08:58:11.5519993Z
2026-01-06T08:58:11.5520119Z -------------------
2026-01-06T08:58:11.5543137Z
2026-01-06T08:58:11.5558467Z ##[section]Finishing: Determine Version and write wixfile
If I run the exact same command in the command line on the exact same build machine, it works totally fine. So I don't really know if the task does something else differently? How can I solve this issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a task in my pipeline:
and my checkout is a shallow clone as this used to work fine for our versioning concept. The issue is, that running the task within the pipeline always ends up with an error from the dotnet-gitversion command that it is a shallow clone even though I told in the arguments that this is allowed.
The command executed as part of the pipeline:
the error:
If I run the exact same command in the command line on the exact same build machine, it works totally fine. So I don't really know if the task does something else differently? How can I solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions