Skip to content

Commit

Permalink
fix: git throws 128 error
Browse files Browse the repository at this point in the history
  • Loading branch information
Krajmark committed Nov 13, 2022
1 parent 9731c6d commit 684360a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/widen/versioning/VersionGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static Optional<String> gitDescribe(Settings settings, File projectDir) {
.redirectOutput(ProcessBuilder.Redirect.PIPE)
.redirectError(ProcessBuilder.Redirect.INHERIT)
.directory(projectDir);
processBuilder.environment().put("GIT_DIR", projectDir.getPath() + "/.git");
processBuilder.environment().put("GIT_DIR", projectDir.getPath());

Process process = processBuilder.start();
String output = IOUtils.toString(process.getInputStream(), Charset.forName("UTF-8"));
Expand Down

0 comments on commit 684360a

Please sign in to comment.