❗ This repository is no longer maintained and may contain vulnerable code. If you wish to revive it, please request a security review. |
---|
Fork of srinivasupadhya/git-cmd, maintaining it so that I can publish this to maven.
Common module that all Go CD plugins to poll Git repository can use.
Usage:
Inside git-cmd
project:
$ mvn clean install -DskipTests
Add Dependency (to plugin project):
<dependency>
<groupId>in.ashwanthkumar</groupId>
<artifactId>git-cmd</artifactId>
<version>1.0</version>
</dependency>
Use:
GitHelper git = HelperFactory.git(gitConfig, new File(flyweightFolder));
git.cloneOrFetch();
...
HelperFactory.git(gitConfig, new File(flyweightFolder));
detects & uses git if installed else falls back on jgit implementation.