Retry git fetches to work around GitPython bug.
GitPython when fetching refs may improperly read in git progress info and interpret it as fetch info. When this happens an AssertionError is thrown. However, since fetching seems to cache the ref locally subsequent fetches work without running into the progress info problem. So fetch again if an AssertionError is caught. Upstream bugfix https://github.com/gitpython-developers/GitPython/pull/42 Change-Id: I1768b836aade2853d4dd3b2f4cd1fce7ec035524 Reviewed-on: https://review.openstack.org/15219 Reviewed-by: Jeremy Stanley <email@example.com> Reviewed-by: James E. Blair <firstname.lastname@example.org> Approved: Clark Boylan <email@example.com> Reviewed-by: Clark Boylan <firstname.lastname@example.org> Tested-by: Jenkinschanges/27/15927/1
Reference in new issue