Skip to content

Commit

Permalink
[MRELEASE-1072] - Reuse original tag for next development version in
Browse files Browse the repository at this point in the history
case translator does not support resolving
  • Loading branch information
kwin committed Nov 6, 2021
1 parent 468520a commit 715e51b
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,19 @@ protected void transformScm( MavenProject project, Model modelTarget, ReleaseDes
scmRoot.setConnection( scm.getConnection() );
scmRoot.setDeveloperConnection( scm.getDeveloperConnection() );
scmRoot.setUrl( scm.getUrl() );
scmRoot.setTag( translator.resolveTag( scm.getTag() ) );
String tag = translator.resolveTag( scm.getTag() );
// reuse unresolved tag from original in case ScmTranslator does not support tags
if ( tag == null )
{
tag = scm.getTag();
}
// never give out default value as there is no way to distinguish it from an the
// explicitly set tag with the same value
if ( "HEAD".equals( tag ) )
{
tag = null;
}
scmRoot.setTag( tag );
}
else
{
Expand Down

0 comments on commit 715e51b

Please sign in to comment.