-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
CentOS 6.7 or Debian 6 with default git version shipped with those systems
The authentication changes in git client plugin 1.19.2 (fc965beb) and possibly 1.6.2 (76ed5522), now cause older git versions to report a config failure due to the unrecognized argument "--local".
Those git versions are not supported in the git client plugin (because they are too old, they don't have the necessary authentication features), but it would be better to give a clean error message rather than reporting an exception because a command line argument is not recognized.
The failure that is reported on CentOS 6.7 is:
ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "git config --local credential.username MarkEWaite" returned status code 129: stdout: stderr: error: unknown option `local' usage: git config [options] Config file location --global use global config file --system use system config file -f, --file <FILE> use given config file Action --get get value: name [value-regex] --get-all get all values: key [value-regex] --get-regexp get values for regexp: name-regex [value-regex] --replace-all replace all matching variables: name value [value_regex] --add adds a new variable: name value --unset removes a variable: name [value-regex] --unset-all removes all matches: name [value-regex] --rename-section rename section: old-name new-name --remove-section remove a section: name -l, --list list all -e, --edit opens an editor --get-color <slot> find the color configured: [default] --get-colorbool <slot> find the color setting: [stdout-is-tty] Type --bool value is "true" or "false" --int value is decimal number --bool-or-int value is --bool or --int --path value is a path (file or directory name) Other -z, --null terminate values with NUL byte