Skip to content

Commit a3ed2b2

Browse files
committed
Slightly improved exception handling for wrong dotGitDirectory.
1 parent 3be6bad commit a3ed2b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/pl/project13/maven/git/JGitProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ protected void prepareGitToExtractMoreDetailedReproInformation() throws MojoExec
106106
revWalk = new RevWalk(git);
107107
headCommit = revWalk.parseCommit(HEAD.getObjectId());
108108
revWalk.markStart(headCommit);
109+
} catch (MojoExecutionException e) {
110+
throw e;
109111
} catch (Exception e) {
110112
throw new MojoExecutionException("Error", e);
111113
}

0 commit comments

Comments
 (0)