Added support for retrying git commands should they fail.

Fixed deprecated use of raise_exception.

Addresses: https://github.com/bundler/bundler/issues/2421