-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] GitVersion has a bug, your HEAD has moved after repo normalisation #3495
Comments
I am also seeing this but with GitLab CI for Merge Request Pipelines only (basic pipelines for commits work as expected) The pipeline runner is running inside Docker for Ubuntu 22.04 LTS with the docker image: A copy of the job instructions (based on the GitVersion - GitLab CI tutorial), git log output, and the CI job log are attached GitLab-CI-JobLog.txt Following the instructions in the tutorial, Setting IGNORE_NORMALISATION_GIT_HEAD_MOVE to 1 does allow the job to succeed but I would rather not use the workaround if possible. |
For anyone encountering this GitVersion.BugException using GitHub Actions, this adjustment to the checkout step resolved the issue for me: |
Happened here https://ci.appveyor.com/project/batzen/snoopwpf/builds/47683895 also. |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. |
This issue was closed because it has been stalled for 30 days with no activity. Thank you for your contributions |
Describe the bug
GitVersion.BugException: GitVersion has a bug, your HEAD has moved after repo normalisation
Full log:
Expected Behavior
The "HEAD has moved after repo normalisation" should be handled gracefully.
Actual Behavior
The above exception thrown.
We set "IGNORE_NORMALISATION_GIT_HEAD_MOVE to 1" for PR (feature branch) builds, but for main branch we don't want to use the workaround.
Possible Fix
Steps to Reproduce
The error description asking for output of the
git log --graph --format="%h %cr %d" --decorate --date=relative --all --remotes=* -n 100
. Please find the output attached.Context
As the result of the failure, our CI builds are failing.
Your Environment
Windows builds on Jenkins.
The text was updated successfully, but these errors were encountered: