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
[SCM-976] GitExe Changelog works if the user has defined a custom format. #134
Conversation
I think SCM-976 is caused by
I also don't think the git built-in formats change between versions. IMO - instead of proposed changes - it would be better to explicitly use |
@nielsbasjes just to check - could you share result of
please? |
$ git config --show-origin --get format.pretty |
526d1b4
to
5a88e39
Compare
@pzygielo You were absolutely right. I have updated the pull request to set the format explicitly. |
@michael-o @cstamas |
Please ping me on Friday. |
@michael-o ping ... |
ping @michael-o |
May I ask to have it finalized, please? |
@nielsbasjes build was failed, please rebase with current basecode, we will can see the result of build |
5a88e39
to
d7c1b00
Compare
On my machine (Intel i7, Ubuntu 20.04, javac 17.0.3, mvn 3.8.3) the |
Hmmm, the readme states |
-Ptck-git |
@pzygielo @slawekjaranowski @michael-o FYI: Everything passed. |
Will check too this night |
I don't understand this change. My manpage says: and this is what I see with the command right now:
Did you configure Git in a way that modifies the output by default? |
Yes he did, as stated in #134 (comment) already.
This change is for maven-scm to work correctly regardless of local/global/system git configuration on user machine, to enforce the format expected by this component. |
Then this makes sense, but the issue summary is wrong and does not relate to the problem. Problem is that the current call does not enforce default output and relies on default, unmodified config. |
I think the commit message is fine now, so it would be the matter to sync PR title and JIRA, right? |
Yes, I'd more expect something like: Something which shows the intent of the change. REason is that there is exactly one default format, a user-defined format is a modified format. |
@michael-o I agree, the title of the jira issue and the pull request were created at a moment I misunderstood the real problem at hand. Just now I have updated these titles to reflect what is really happening. Are you happy with what you see now? |
Yes, I will move forward with this today |
Looking into now. @nielsbasjes Would you mind also to check other commands whether they are prone to this issue as well? |
… custom format This closes #134
@michael-o I checked the git documentation and the Other than the changelog I only found the GitUpdateCommand to use As far as I can tell no other git commands are affected. |
Great, thanks for the investigation. |
I found that there is also a -Ptck and if you run that it truly runs all tests ... and several fail. I have added a new Jira ticket about this: https://issues.apache.org/jira/browse/SCM-981 |
My proposed fix for https://issues.apache.org/jira/browse/SCM-976
I'm an Apache Committer (Avro, Flink) so the licensing part should be fine.
If I run the current version on the maven-scm git repo I see:
mvn org.apache.maven.plugins:maven-scm-plugin:2.0.0-M1:changelog
with these changes I see
mvn org.apache.maven.plugins:maven-scm-plugin:2.0.0-M2-SNAPSHOT:changelog