commit | 5b721a27d1001eb92e14d7d54205260795294ed5 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Mon Apr 15 11:25:23 2019 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Mon Apr 15 11:25:23 2019 +0900 |
tree | e889c7475230dac0173705b9705ed279f02bb505 | |
parent | 0f2cc73ac30aea90950d14e63bbeedcd5a0b25e4 [diff] |
Stop using JGit's deprecated Repository#peel method Change-Id: I36347c8f55dea11ae0c582854927cce66cfb2953
diff --git a/java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java b/java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java index dadc28f..d202b71 100644 --- a/java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java +++ b/java/com/googlesource/gerrit/plugins/supermanifest/SuperManifestRefUpdatedListener.java
@@ -384,7 +384,7 @@ return null; } - ref = repo.peel(ref); + ref = repo.getRefDatabase().peel(ref); ObjectId id = ref.getPeeledObjectId(); return id != null ? id : ref.getObjectId(); } catch (RepositoryNotFoundException e) {