File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 37
37
import org .eclipse .jgit .errors .MissingObjectException ;
38
38
import org .eclipse .jgit .lib .ObjectId ;
39
39
import org .eclipse .jgit .lib .Ref ;
40
- import org .eclipse .jgit .lib .RefDatabase ;
41
40
import org .eclipse .jgit .lib .Repository ;
42
41
import org .eclipse .jgit .revwalk .RevCommit ;
43
42
import org .eclipse .jgit .revwalk .RevSort ;
@@ -138,7 +137,7 @@ private boolean isVisible(
138
137
139
138
// If any reference directly points at the requested object, permit display. Common for displays
140
139
// of pending patch sets in Gerrit Code Review, or bookmarks to the commit a tag points at.
141
- Collection <Ref > all = repo .getRefDatabase ().getRefs (RefDatabase . ALL ). values ( );
140
+ Collection <Ref > all = repo .getRefDatabase ().getRefs ();
142
141
for (Ref ref : all ) {
143
142
ref = repo .getRefDatabase ().peel (ref );
144
143
if (id .equals (ref .getObjectId ()) || id .equals (ref .getPeeledObjectId ())) {
You can’t perform that action at this time.
0 commit comments