A Plugin for FitNesse that commits to a Git repository
Java
Latest commit f1d9d3a Oct 24, 2014 @timander Merge pull request #3 from john-ross/patch-1
update changed URL of FitNesse documentation
Permalink
Failed to load latest commit information.
src
.gitignore extracting the GitCmSystem from FitNesse to an external plugin so the… Sep 27, 2011
README
pom.xml [maven-release-plugin] prepare for next development iteration Sep 28, 2011

README

The fitnesse-git-plugin is intended to work with FitNesse's built-in Source Control mechanism.
To use it, add CM_SYSTEM as an environment variable or a defined variable in FitNesse.

Please see http://www.fitnesse.org/FitNesse.UserGuide.AdministeringFitNesse.SourceCodeControl

Put the fitnesse-git-plugin.jar in a folder called "plugins" next to the fitnesse.jar
  |---fitnesse.jar
  |---plugins
  |------fitnesse-git-plugin.jar
  |---plugins.properties
  |---run.sh
  |---run.bat

Add git.path=/your/path/to/git to plugins.properties
Example of plugins.properties
  ---------------------------------------------
  |git.path=git.path=/your/path/to/git
  ---------------------------------------------

Example of run.sh (OSX)
  ---------------------------------------------
  |export CM_SYSTEM=org.fitnesse.plugins.GitScm
  |java -jar fitnesse.jar -e 0 -p 9001
  ---------------------------------------------

Example of run.bat (Windows)
  ---------------------------------------------
  |set CM_SYSTEM=org.fitnesse.plugins.GitScm
  |java -jar fitnesse.jar -e 0 -p 9001
  ---------------------------------------------

To test it, try making changes to a FitNesse page and check your git log to see if it committed

Feedback is appreciated!


***Known Problem***
Doesn't work on OSX because of the StringTokenization with Runtime.getRuntime.exec(String command)
I think the fitnesse.components.CommandRunner needs to be changed to explicitely call "rt.exec(new String[]{command}, environmentVariables);"
Here's what I found:
  http://stackoverflow.com/questions/161859/using-quotes-within-getruntime-exec
  http://www.velocityreviews.com/forums/t138173-runtime-getruntim-exec-somecmd-problem-with-linux.html