summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2017-02-09 15:09:39 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2017-02-09 15:10:15 +0900
commit16dc88fe10274ad93eb7b55c06532d4e04e6e2e8 (patch)
tree6c870bd1c7cbe75a2c20cd197339e6c42dc159a7 /org.eclipse.jgit.test
parentd9d8c507a48e040e3b346a1386b7eac55e2aa345 (diff)
downloadjgit-16dc88fe10274ad93eb7b55c06532d4e04e6e2e8.tar.gz
jgit-16dc88fe10274ad93eb7b55c06532d4e04e6e2e8.zip
PushCommandTest: Remove unused variables to prevent errors in Eclipse
Change-Id: Ie656b18fb151bf1e3c2dcc0438a77e32102991c2 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java
index eaf64b649f..8c613ec488 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java
@@ -400,7 +400,7 @@ public class PushCommandTest extends RepositoryTestCase {
try (Git git1 = new Git(db)) {
// create one commit and push it
RevCommit commit = git1.commit().setMessage("initial commit").call();
- Ref branchRef = git1.branchCreate().setName("initial").call();
+ git1.branchCreate().setName("initial").call();
RefSpec spec = new RefSpec("refs/heads/master:refs/heads/x");
git1.push().setRemote("test").setRefSpecs(spec)
@@ -410,7 +410,7 @@ public class PushCommandTest extends RepositoryTestCase {
db2.resolve(commit.getId().getName() + "^{commit}"));
//now try to force-push a new commit, with a good lease
- RevCommit commit2 = git1.commit().setMessage("second commit").call();
+ git1.commit().setMessage("second commit").call();
Iterable<PushResult> results =
git1.push().setRemote("test").setRefSpecs(spec)
.setRefLeaseSpecs(new RefLeaseSpec("refs/heads/x", "initial"))
@@ -420,7 +420,7 @@ public class PushCommandTest extends RepositoryTestCase {
assertEquals(update.getStatus(), RemoteRefUpdate.Status.OK);
}
- RevCommit commit3 = git1.commit().setMessage("third commit").call();
+ git1.commit().setMessage("third commit").call();
//now try to force-push a new commit, with a bad lease
results =