github ajoberstar/grgit 2.2.0-rc.1

latest releases: 5.2.2, 5.2.2-rc.2, 5.2.2-rc.1...
pre-release6 years ago

Feature release adding opt-in support of SSH via external ssh or plink commands as an alternative to JSch (which has been pretty problematic for people). The grgit-authentication documentation has been updated to show how to use this. However, note that if your remote is on Git 2.14+ you'll likely encounter JGit#529463 causing your program to hang. Hope is that this will be fixed in JGit's next release.

Rejected pushes now throw an exception instead of failing silently.

Additionally, a Consumer variant was added to all operations to make Java usage of Grgit easier.

grgit.add({ op ->
  op.setPatterns(Arrays.asList("."));
});

Changes since beta.2 The #216 fix was added.

Breaking Changes

None

Enhancements

  • #206 Support external SSH commands as an alternative to JSch
  • Support Consumer as an alternative to Closure or Map syntax on all operations

Fixes

  • #216 Push used to fail silently when pre-receive hooks declined the push. This will now throw an exception.

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 3.0 through 4.7
9 4.2.1. through 4.7
10 4.2.1 through 4.7

Don't miss a new grgit release

NewReleases is sending notifications on new releases.