Merge changes Id255aa3d,I37f156cd

* changes:
  Introduce server.util.DelegateSystemReader
  AbstractChangeNotes: mark readRef @Nullable
This commit is contained in:
Edwin Kempin
2019-09-03 13:37:22 +00:00
committed by Gerrit Code Review
7 changed files with 74 additions and 95 deletions

View File

@@ -153,6 +153,7 @@ public abstract class AbstractChangeNotes<T> {
return self();
}
@Nullable
protected ObjectId readRef(Repository repo) throws IOException {
Ref ref = repo.getRefDatabase().exactRef(getRefName());
return ref != null ? ref.getObjectId() : null;