Skip to content

Commit bde22a9

Browse files
committed
Do not tag HEAD
1 parent 491b0a3 commit bde22a9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rtc2git.cli.extension/src/to/rtc/cli/migrate/RtcTagList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void pruneInactiveTags() {
7575
}
7676
boolean lastTagReached = false;
7777
for (RtcTag tag : rtcTags) {
78-
tag.setDoCreateTag(!lastTagReached);
78+
tag.setDoCreateTag(!lastTagReached && tag.doCreateTag());
7979
if (tag.equals(lastTagThatRequiresTagging)) {
8080
lastTagReached = true;
8181
}

rtc2git.cli.extension/src_test/to/rtc/cli/migrate/RtcTagListTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ public void testRuntimeExceptionIfTagNotFound() {
176176
@Test
177177
public void testHeadTagWillNotBeTagged() {
178178
RtcTag headTag = tagList.getHeadTag();
179+
tagList.pruneInactiveTags();
179180

180181
assertThat("HEAD tag will never be tagged", headTag.doCreateTag(), equalTo(false));
181182

0 commit comments

Comments
 (0)