Added support for retrying git commands should they fail.
Fixed deprecated use of raise_exception.