Skip to content
Permalink
Browse files
Fix git 2.25 compatibility
Reviewed-by: ehelin
  • Loading branch information
rwestberg committed Jan 16, 2020
1 parent 2cacefc commit 0624bed2eb02b16c05c28c45ce5509d528331dcb
Showing with 2 additions and 2 deletions.
  1. +2 −2 vcs/src/main/java/org/openjdk/skara/vcs/git/GitRepository.java
@@ -445,8 +445,8 @@ public Path root() throws IOException {
}

try (var p = capture("git", "rev-parse", "--show-toplevel")) {
var res = await(p);
if (res.stdout().size() != 1) {
var res = p.await();
if (res.status() != 0 || res.stdout().size() != 1) {
// Perhaps this is a bare repository
try (var p2 = capture("git", "rev-parse", "--git-dir")) {
var res2 = await(p2);

0 comments on commit 0624bed

Please sign in to comment.