PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, August 21, 2022

[FIXED] What does the environment variable IGNORE_NORMALISATION_GIT_HEAD_MOVE do?

 August 21, 2022     c#, environment-variables, git, git-detached-head, gitversion     No comments   

Issue

I have a C# code base that uses GitVersion.MsBuild. Sometimes my Jenkins build server gives me this error:

GitVersion.BugException: GitVersion has a bug, your HEAD has moved after repo normalisation.
To disable this error set an environmental variable called IGNORE_NORMALISATION_GIT_HEAD_MOVE to 1

This often happens when building a feature branch that is not based on the latest master (i.e., master has moved since the feature branch was made).

The error message describes a suggested fix/workaround, but I am hesitant to do this because I don't know what environmental variable IGNORE_NORMALISATION_GIT_HEAD_MOVE does, and I cannot find a description of it anywhere.

If I set IGNORE_NORMALISATION_GIT_HEAD_MOVE to 1, what side effects does this have?

Thanks in advance!

EDIT: I asked the same question in an issue on GitVersion's GitHub.


Solution

According to the maintainers of GitVersion, this variable just suppresses a BugException that otherwise gets throw in this situation.

See issue here: https://github.com/GitTools/GitVersion/issues/2934



Answered By - Claus Appel
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing