diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2018-04-25 01:44:43 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2018-04-25 03:28:51 +0200 |
commit | 9edf9bf2d6fd248daf2157bc8245142e5d51f7c2 (patch) | |
tree | bde5d20cc6858d47587afd8594ddf8c77675dde1 /org.eclipse.jgit.lfs | |
parent | f26d6558f865cb6a64d0996c534a858310e8b9bb (diff) | |
download | jgit-9edf9bf2d6fd248daf2157bc8245142e5d51f7c2.tar.gz jgit-9edf9bf2d6fd248daf2157bc8245142e5d51f7c2.zip |
Remove trivial cases of using deprecated RefDatabase.getRefs()
Change-Id: I2d3e426a3391923f8a690ac68fcc33851f3eb419
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.lfs')
-rw-r--r-- | org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPrePushHook.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPrePushHook.java b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPrePushHook.java index c11ddbee25..de4449f5e3 100644 --- a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPrePushHook.java +++ b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPrePushHook.java @@ -174,8 +174,8 @@ public class LfsPrePushHook extends PrePushHook { private void excludeRemoteRefs(ObjectWalk walk) throws IOException { RefDatabase refDatabase = getRepository().getRefDatabase(); - Map<String, Ref> remoteRefs = refDatabase.getRefs(remote()); - for (Ref r : remoteRefs.values()) { + List<Ref> remoteRefs = refDatabase.getRefsByPrefix(remote()); + for (Ref r : remoteRefs) { ObjectId oid = r.getPeeledObjectId(); if (oid == null) { oid = r.getObjectId(); |