Closed nartamonov closed 6 years ago
TL;DR: my skills at running external executables from the JVM is not strong.
IIRC, running git outside bash means that the environment variables that tune its behavior are not present. I would happily accept a pull request that works for both Windows and *nix shells.
BTW, my long term goal is to query the git repo directly using the JGit library. Unfortunately, the last time I started making the change the JGit library was missing some critical functionality. That problem may now be resolved...
About the environment variables, (shell/sh)
is implemented via Runtime.exec()
, whose default behavior is to have the subprocess inherit all of the parent's environment variables, so the bash process isn't necessary for that purpose.
I think this should work now that #23 has been merged.
It seems plugin does not work on Windows, because of dependency on
bash
:Why can't we run git directly, like it does similar project
sbt-git
for Scala language?