Skip to content

Commit c383b26

Browse files
committed
Update JGit
Repository#getAllRefsByPeeledObjectId now throws IOException so we have to propagate it. No other changes required. Reported-by: Alina Djamankulova <adjama@google.com> Change-Id: I172ec48fe2d54a1ffcfcc74a775eac5e11bc7650
1 parent bc3830e commit c383b26

5 files changed

Lines changed: 8 additions & 14 deletions

File tree

WORKSPACE

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,9 @@ maven_jar(
177177
)
178178

179179
maven_jar(
180-
name = "hamcrest-library",
181-
artifact = "org.hamcrest:hamcrest-library:1.3",
182-
sha1 = "4785a3c21320980282f9f33d0d1264a69040538f",
183-
)
184-
185-
maven_jar(
186-
name = "hamcrest-core",
187-
artifact = "org.hamcrest:hamcrest-core:1.3",
188-
sha1 = "42a25dc3219429f0e5d060061f71acb49bf010a0",
180+
name = "hamcrest",
181+
artifact = "org.hamcrest:hamcrest:2.2",
182+
sha1 = "1820c0968dba3a11a1b30669bb1f01978a91dedc",
189183
)
190184

191185
maven_jar(

java/com/google/gitiles/CommitData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private static String urlFromView(
203203
.toUrl();
204204
}
205205

206-
private List<Ref> getRefsById(Repository repo, ObjectId id, String prefix) {
206+
private List<Ref> getRefsById(Repository repo, ObjectId id, String prefix) throws IOException {
207207
if (refsById == null) {
208208
refsById = repo.getAllRefsByPeeledObjectId();
209209
}

javatests/com/google/gitiles/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ junit_tests(
3636
exclude = ["**/ServletTest.java"],
3737
),
3838
visibility = ["//visibility:public"],
39-
runtime_deps = ["//lib/junit:hamcrest-core"],
39+
runtime_deps = ["//lib/junit:hamcrest"],
4040
deps = DEPS + [
4141
"//java/com/google/gitiles:servlet",
4242
":testutil",

lib/junit/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ java_library(
1010
)
1111

1212
java_library(
13-
name = "hamcrest-core",
14-
exports = ["@hamcrest-core//jar"],
13+
name = "hamcrest",
14+
exports = ["@hamcrest//jar"],
1515
)

modules/jgit

Submodule jgit updated 614 files

0 commit comments

Comments
 (0)