diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2016-05-20 11:28:21 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2016-05-31 00:11:11 +0200 |
commit | 4c236ff4bbf664fd177a33f42517b0eef52510c8 (patch) | |
tree | f4bec49bded5342a3be25c271a5a910751ce63d4 /org.eclipse.jgit/src/org/eclipse/jgit/api/ShowNoteCommand.java | |
parent | bfebe6ae4bf50250eca20b7c6bea0d06e771a817 (diff) | |
download | jgit-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.java | 2 |
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()); |