Skip to content

Commit

Permalink
Fix PR Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
talarian1 committed Dec 28, 2021
1 parent e269965 commit eb61f76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private static String extractVcsMessage(File dotGit, Log log) throws IOException
try {
latestCommit = new Git(repository).log().setMaxCount(1).call().iterator().next();
} catch (GitAPIException e) {
log.warn("Failed fetching commit message from git directory: " + dotGit);
log.warn("Failed fetching commit message from git directory: " + dotGit + "\nWith the following error: " + e.getMessage());
return "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ private void testReadGitConfig() throws IOException, InterruptedException {
Assert.assertEquals(vcs.getRevision(), getGitRevisionWithExecutor(curDir, testLog));
Assert.assertEquals(vcs.getBranch(), getGitBranchWithExecutor(curDir, testLog));
Assert.assertEquals(vcs.getMessage(), getGitMessageWithExecutor(curDir, testLog));

}

private String getGitFieldWithExecutor(File execDir, Log log, List<String> args) throws IOException, InterruptedException {
Expand Down

0 comments on commit eb61f76

Please sign in to comment.