aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2018-03-09 19:43:22 -0500
committerMatthias Sohn2018-03-11 17:24:53 -0400
commit17e2b92ea4cdff9e53d27f404b37609f2f4093fa (patch)
tree0c8754a21cdd029663f807eabe1f1a6509ac6cf0
parent3d4ebb41db0900eb2d731467550aff154ce9488f (diff)
downloadegit-github-17e2b92ea4cdff9e53d27f404b37609f2f4093fa.zip
egit-github-17e2b92ea4cdff9e53d27f404b37609f2f4093fa.tar.gz
egit-github-17e2b92ea4cdff9e53d27f404b37609f2f4093fa.tar.xz
Replace use of deprecated Repository#getRef method
Change-Id: I5a4d904e6210fdff8f6c6c406f67e45503f640b4 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/CheckoutPullRequestHandler.java2
-rw-r--r--org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/MergePullRequestHandler.java2
-rw-r--r--org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/RebasePullRequestHandler.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/CheckoutPullRequestHandler.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/CheckoutPullRequestHandler.java
index 10e6f78..6841fd2 100644
--- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/CheckoutPullRequestHandler.java
+++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/CheckoutPullRequestHandler.java
@@ -87,7 +87,7 @@ public class CheckoutPullRequestHandler extends TaskDataHandler {
return Status.CANCEL_STATUS;
String branchName = PullRequestUtils.getBranchName(request);
- Ref branchRef = repo.getRef(branchName);
+ Ref branchRef = repo.findRef(branchName);
RemoteConfig remote = null;
String headBranch = null;
diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/MergePullRequestHandler.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/MergePullRequestHandler.java
index 74690bc..eacf42b 100644
--- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/MergePullRequestHandler.java
+++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/MergePullRequestHandler.java
@@ -62,7 +62,7 @@ public class MergePullRequestHandler extends TaskDataHandler {
String target = request.getBase().getRef();
String branchName = PullRequestUtils.getBranchName(request);
try {
- Ref sourceRef = repo.getRef(branchName);
+ Ref sourceRef = repo.findRef(branchName);
if (sourceRef != null) {
if (!PullRequestUtils.isCurrentBranch(target, repo)) {
monitor.setTaskName(MessageFormat
diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/RebasePullRequestHandler.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/RebasePullRequestHandler.java
index 55eb340..4e0221a 100644
--- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/RebasePullRequestHandler.java
+++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/RebasePullRequestHandler.java
@@ -62,7 +62,7 @@ public class RebasePullRequestHandler extends TaskDataHandler {
String branchName = PullRequestUtils.getBranchName(request);
try {
String target = request.getBase().getRef();
- Ref targetRef = repo.getRef(request.getBase().getRef());
+ Ref targetRef = repo.findRef(request.getBase().getRef());
if (targetRef != null) {
if (!PullRequestUtils.isCurrentBranch(branchName, repo)) {
monitor.setTaskName(MessageFormat