I tried to run JavaGit under Windows XP (Or windows of any kind I guess would do), and came across a problem to even run the simplest cookbook line.
The problem originated with JavaGitConfiguration.setGitPath, which calls eventually determineGitVersion, which checks if "git" is in the path specified.
The line there "gitPrefix = path.getAbsolutePath() + File.pathSeparator;" is problematic (Also in "getGitCommandPrefix()" since it tries to create the following for Windows:
"C:\JavaGitPathSpecified\;git --version" as the command line. Two problems here:
1. We should be able to either add a suffix (Make it git.exe, otherwise the file won't be found?)
2. Give the actual git.exe path, since the above doesn't run.
Not sure if it's a problem for Unix (Although it seems to me "C:\JavaGitPathSpecified\:git --version" is equally problematic), but it sure is for Windows.
Wouldn't mind sending a patch once verified.
Hi,
I've created a JavaGit fork located at http://bit-man.github.io/SwissArmyJavaGit/ and this problem is fixed in last version.
Please feel free to clone the repository or download it.
Hope this helps