]> source.dussan.org Git - jgit.git/commitdiff
Remove pointless setOldObjectId in test 18/918/2
authorShawn O. Pearce <spearce@spearce.org>
Tue, 22 Jun 2010 23:18:22 +0000 (16:18 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 23 Jun 2010 23:54:14 +0000 (16:54 -0700)
Setting this value is pointless, because its automatically set
by the refs.newUpdate call that created the update operation.
The API is protected by default, because application level code,
including this test, should not be calling it.

Change-Id: I8867a4e8007892e2bd44a05d7dec619081081943
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RefUpdateTest.java

index c8a5b33f68e9477a45783f08936ba3971a07797a..8a9bb52633bcd4389ef3de592ff203e8888a9799 100644 (file)
@@ -834,7 +834,6 @@ public class RefUpdateTest extends SampleDataRepositoryTestCase {
                        String msg, String refName) throws IOException {
                RefDirectory refs = (RefDirectory) db.getRefDatabase();
                RefDirectoryUpdate update = refs.newUpdate(refName, true);
-               update.setOldObjectId(oldId);
                update.setNewObjectId(newId);
                refs.log(update, msg, true);
        }