From 8cd67e7c7cb9c1ad3e3ca0603fb76809d010ec9b Mon Sep 17 00:00:00 2001 From: Joe Di Pol Date: Thu, 14 Sep 2023 08:45:59 -0700 Subject: [PATCH 1/2] Upgrade jgit to 6.7.0 --- .../config/git/GitConfigSourceBuilderTest.java | 13 +++++++++++++ dependencies/pom.xml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java b/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java index 472fd568666..8008289d816 100644 --- a/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java +++ b/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java @@ -18,6 +18,7 @@ import java.io.File; import java.io.IOException; +import java.lang.reflect.Method; import java.net.URI; import java.nio.file.Path; import java.nio.file.Paths; @@ -41,6 +42,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; import org.junit.jupiter.api.extension.RegisterExtension; +import org.junit.rules.TestName; import static io.helidon.config.PollingStrategies.regular; import static io.helidon.config.testing.ValueNodeMatcher.valueNode; @@ -62,6 +64,17 @@ public class GitConfigSourceBuilderTest extends RepositoryTestCase { @BeforeEach public void setUp(TestInfo testInfo) throws Exception { + String testMethodName = testInfo.getTestMethod() + .map(Method::getName) + .orElse(this.getClass().getName()); + /* Hack to let us re-use setup from jgit 6's LocalDiskRepositoryTestCase */ + super.currentTest = new TestName() { + @Override + public String getMethodName() { + return testMethodName; + } + }; + super.setUp(); git = new Git(db); diff --git a/dependencies/pom.xml b/dependencies/pom.xml index 2fbaa5b8300..bb9080536c2 100644 --- a/dependencies/pom.xml +++ b/dependencies/pom.xml @@ -96,7 +96,7 @@ 3.0.2 3.6.3 3.0.11 - 5.11.1.202105131744-r + 6.7.0.202309050840-r 2.0.1 5.7.0 3.4.0 From 36c3d4120396a55eb243dfae6c148caf4aad29ff Mon Sep 17 00:00:00 2001 From: Joe Di Pol Date: Thu, 14 Sep 2023 08:50:48 -0700 Subject: [PATCH 2/2] Fix copyright --- .../java/io/helidon/config/git/GitConfigSourceBuilderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java b/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java index 8008289d816..416473ac2f7 100644 --- a/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java +++ b/config/git/src/test/java/io/helidon/config/git/GitConfigSourceBuilderTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2020 Oracle and/or its affiliates. + * Copyright (c) 2017, 2023 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.