|
|
|
@ -102,6 +102,16 @@ public class TestRepositoryTest {
|
|
|
|
|
c2.getFullMessage()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void insertChangeIdIgnoresExisting() throws Exception { |
|
|
|
|
String msg = "message\n" |
|
|
|
|
+ "\n" |
|
|
|
|
+ "Change-Id: Ideadbeefdeadbeefdeadbeefdeadbeefdeadbeef\n"; |
|
|
|
|
RevCommit c = tr.commit().message(msg).insertChangeId().create(); |
|
|
|
|
rw.parseBody(c); |
|
|
|
|
assertEquals(msg, c.getFullMessage()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void resetFromSymref() throws Exception { |
|
|
|
|
repo.updateRef("HEAD").link("refs/heads/master"); |
|
|
|
|