elharo commented on code in PR #1499:
URL: https://github.com/apache/maven-release/pull/1499#discussion_r4700895141
##########
maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java:
##########
@@ -147,7 +148,10 @@ public static ReleaseDescriptor
createBasedirAlignedReleaseDescriptor(
int parentLevels =
Paths.get(releaseDescriptor.getPomFileName()).getNameCount() - 1;
String url = releaseDescriptor.getScmSourceUrl();
- url = realignScmUrl(parentLevels, url);
+ // Git URLs identify the repository, not the directory containing the
reactor's root POM.
+ if (!ScmUrlUtils.isValid(url) ||
!"git".equals(ScmUrlUtils.getProvider(url))) {
Review Comment:
is this true of git URLs or GitHub URLs?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]