-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: added ignore-detached-head command line flag #4
base: master
Are you sure you want to change the base?
Conversation
We have experienced, when someone is committing changes while our build process is running with and including commits, for example when updating pom file version, it breaks the build process, simply ignoring the detached head fixes it for us.
Kudos, SonarCloud Quality Gate passed! |
@PSanetra friendly reminder |
@qvistgaard thank you for the reminder. I will think about this later today. I think it should be possible to solve that issue without this special flag. Maybe you can add an integration test in the |
@qvistgaard can you take a look at 3db11b0? This test checks if the |
@PSanetra Sorry for the late reply. you can use this set of commands to reproduce:
Final tree:
Running without the new flag causes this error
With the flag removes this issue
|
@qvistgaard ok, the problem is that the commit with the tag I think the best approach would be to merge the release branch back into the master so that the master also contains the In our projects we don't have a release branch, but instead create release tags directly on the master. |
@PSanetra I agree with you on that, and that is what we are doing today. But it has a couple of drawbacks:
|
We have experienced, when someone is committing changes while our build process is running with and including commits, for example when updating pom file version, it breaks the build process, simply ignoring the detached head fixes it for us.