Remove 'filterTagsSeparately' to comply with API
Change-Id: Ia2547165c636c796459df3414e861f3ce4d8b37c
diff --git a/src/main/java/com/googlesource/gerrit/plugins/gitiles/FilteredRepository.java b/src/main/java/com/googlesource/gerrit/plugins/gitiles/FilteredRepository.java
index c3bed8a..0a4d3bf 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/gitiles/FilteredRepository.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/gitiles/FilteredRepository.java
@@ -199,11 +199,7 @@
return null;
}
try {
- return perm.filter(
- ImmutableMap.of(name, ref),
- git,
- RefFilterOptions.builder().setFilterTagsSeparately(true).build())
- .get(name);
+ return perm.filter(ImmutableMap.of(name, ref), git, RefFilterOptions.defaults()).get(name);
} catch (PermissionBackendException e) {
throw new IOException(e);
}
@@ -216,10 +212,7 @@
return null;
}
try {
- return perm.filter(
- ImmutableMap.of(ref.getName(), ref),
- git,
- RefFilterOptions.builder().setFilterTagsSeparately(true).build())
+ return perm.filter(ImmutableMap.of(ref.getName(), ref), git, RefFilterOptions.defaults())
.get(ref.getName());
} catch (PermissionBackendException e) {
throw new IOException(e);
@@ -232,9 +225,7 @@
try {
refs =
perm.filter(
- git.getRefDatabase().getRefsByPrefix(prefix),
- git,
- RefFilterOptions.builder().setFilterTagsSeparately(true).build());
+ git.getRefDatabase().getRefsByPrefix(prefix), git, RefFilterOptions.defaults());
} catch (PermissionBackendException e) {
throw new IOException(e);
}