aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/api/ShowNoteCommand.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2016-05-20 11:28:21 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2016-05-31 00:11:11 +0200
commit4c236ff4bbf664fd177a33f42517b0eef52510c8 (patch)
treef4bec49bded5342a3be25c271a5a910751ce63d4 /org.eclipse.jgit/src/org/eclipse/jgit/api/ShowNoteCommand.java
parentbfebe6ae4bf50250eca20b7c6bea0d06e771a817 (diff)
downloadjgit-4c236ff4bbf664fd177a33f42517b0eef52510c8.tar.gz
jgit-4c236ff4bbf664fd177a33f42517b0eef52510c8.zip
Replace use of deprecated method Repository.getRef()
Change-Id: Iecf2b8deafc4991cc3333702fb9fa0638be7b914 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/api/ShowNoteCommand.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/ShowNoteCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/ShowNoteCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/ShowNoteCommand.java
index 82db88190f..168ea51e77 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/ShowNoteCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/ShowNoteCommand.java
@@ -79,7 +79,7 @@ public class ShowNoteCommand extends GitCommand<Note> {
NoteMap map = NoteMap.newEmptyMap();
RevCommit notesCommit = null;
try (RevWalk walk = new RevWalk(repo)) {
- Ref ref = repo.getRef(notesRef);
+ Ref ref = repo.exactRef(notesRef);
// if we have a notes ref, use it
if (ref != null) {
notesCommit = walk.parseCommit(ref.getObjectId());