Skip to content

Commit

Permalink
test: bug #130 reproduced (Go tests are supposed to fail) #129 #130
Browse files Browse the repository at this point in the history
  • Loading branch information
flelli committed Jan 22, 2023
1 parent 686e91d commit a2b2a70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1383,14 +1383,14 @@ public void isCleanWithTextFileContainingLineFeedsUsingGitCommandTest()
assertTrue(JGitRepository.open(repoDirectory).isClean());

// Give the local repository an identity or some further steps may fail
p = new ProcessBuilder(new String[]{"git", "config ", "user.email", "\"jdoe@example.com\""}).directory(repoDirectory).redirectErrorStream(true).start();
p = new ProcessBuilder(new String[]{"git", "config", "user.email", "\"jdoe@example.com\""}).directory(repoDirectory).redirectErrorStream(true).start();
p.waitFor();
System.out.println("Output from 'git config user.email \"jdoe@example.com\"' is:");
System.out.write(p.getInputStream().readAllBytes());
System.out.println();
System.out.flush();
p.destroy();
p = new ProcessBuilder(new String[]{"git", "config ", "user.name", "\"John Doe\""}).directory(repoDirectory).redirectErrorStream(true).start();
p = new ProcessBuilder(new String[]{"git", "config", "user.name", "\"John Doe\""}).directory(repoDirectory).redirectErrorStream(true).start();
p.waitFor();
System.out.println("Output from 'git config user.name \"John Doe\"' is:");
System.out.write(p.getInputStream().readAllBytes());
Expand Down

0 comments on commit a2b2a70

Please sign in to comment.