File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/test/java/pl/project13/maven/git Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -640,6 +640,8 @@ public void runGitDescribeWithMatchOption(boolean useNativeGit) throws Exception
640640
641641 GitDescribeConfig gitDescribeConfig = new GitDescribeConfig ();
642642 gitDescribeConfig .setMatch (gitDescribeMatchNeedle );
643+ gitDescribeConfig .setAlways (false );
644+
643645 alterMojoSettings ("gitDescribe" , gitDescribeConfig );
644646 alterMojoSettings ("useNativeGit" , useNativeGit );
645647
@@ -648,7 +650,7 @@ public void runGitDescribeWithMatchOption(boolean useNativeGit) throws Exception
648650
649651 // then
650652 assertThat (targetProject .getProperties ().stringPropertyNames ()).contains ("git.commit.id.describe" );
651- assertThat (targetProject .getProperties ().getProperty ("git.commit.id.describe" )).isEqualTo (gitDescribeMatchNeedle + "-66-g1c6cf6f" );
653+ assertThat (targetProject .getProperties ().getProperty ("git.commit.id.describe" )).startsWith (gitDescribeMatchNeedle );
652654
653655 assertThat (targetProject .getProperties ().stringPropertyNames ()).contains ("git.commit.id" );
654656 assertThat (targetProject .getProperties ().get ("git.commit.id" )).isNotEqualTo (commitIdOfMatchNeedle );
You can’t perform that action at this time.
0 commit comments