what this error means #3994
-
GitVersion.GitVersionException: Cannot find commit 051ddec +semver: minor. Please ensure that the repository is an unshallow clone with - checkout: self
fetchDepth: 100
persistCredentials: true
- task: gitversion/setup@0
displayName: 'Install GitTools'
inputs:
arguments: '--debug'
versionSpec: '5.11.1' I want to ignore all past commit and want to start scratch from my new commit in my branch for version calculation. What are options to me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You need to set |
Beta Was this translation helpful? Give feedback.
-
It worked with mode: Mainline
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
no-bump-message: '\+semver:\s?(none|skip)'
commit-message-incrementing: Enabled
ignore:
commits-before: 2024-03-09T06:02:00
branches:
main:
regex: ^vertest$ # Matches your developement branch
tag: '' # No tag associated with the feature branch
source-branches: [] |
Beta Was this translation helpful? Give feedback.
It worked with