Fix replication to retry on lock errors

Versions of Git released since 2014 have created a new status
"failed to update ref" which replaces the two statuses "failed to lock"
and "failed to write". So, we now see the newer status when the remote
is unable to lock a ref.

Refer Git commit:

Config 'lockErrorMaxRetries' is not removed as part of this change
as folks who have it configured currently don't run into unexpected
behavior with retries when they upgrade to a newer version of the
plugin. Also, the "failed to lock" check is not removed for folks
still using a version of Git older than 2014.

Change-Id: I9b3b15bebd55df30cbee50a0e0c2190d04f2f443
4 files changed
tree: 99527761cfc82b0bb4c808ef221b6a78d7baa1d8
  1. .gitignore
  2. .mailmap
  3. .settings/
  4. BUILD
  6. src/