jenkinsci/git-client-plugin — pull request #118 by tgyurci (2014-02-24 15:09:11+00:00)
Title: Pass submodule reset as a single argument to foreach

In Git 1.9 the submodule foreach command executes the passed command as "$@" or eval "$1", not eval "$@" like in 1.8. Therefore the current git reset --hard will be interpreted as "git reset" --hard, resulting this error:

FATAL: Command "git submodule foreach --recursive git reset --hard" returned status code 1:
...
stderr: /usr/lib/git-core/git-submodule: 1409: git reset: not found