RFR: SKARA-461: Do a git version check

Jorn Vernee jvernee at openjdk.java.net
Wed Jul 29 14:48:03 UTC 2020


Hi,

This PR adds a git version check to the `git skara` CLI. This will print a warning if the git version is not a known
working version. Since outdated versions can lead to IOExceptions due to e.g. unsupported git CLI options, hopefully
the warning message will help to inform users about their use of an unsupported git version, and a potential way to
solve the problem i.e. upgrading to a more recent version.

Currently at least git 2.22 is required since we use the `--combined-all-paths` option of git log (see GitCommits),
which was added in 2.22.

Thanks,
Jorn

-------------

Commit messages:
 - Add git version check to CLI tools

Changes: https://git.openjdk.java.net/skara/pull/707/files
 Webrev: https://webrevs.openjdk.java.net/skara/707/webrev.00
  Issue: https://bugs.openjdk.java.net/browse/SKARA-461
  Stats: 268 lines in 5 files changed: 268 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/skara/pull/707.diff
  Fetch: git fetch https://git.openjdk.java.net/skara pull/707/head:pull/707

PR: https://git.openjdk.java.net/skara/pull/707


More information about the skara-dev mailing list