FetchSourceBranch: Introduce `expected_old_oid` to avoid race conditions
In RPCs lacks ability to let clients update a refe... (#4775 - closed) we found the remaining mutator RPCs which we didn't address for races.
Let's add a new field expected_old_oid
to FetchSourceBranch
which is fed into git-update-ref(1)
and used to avoid race condition.
Edited by Karthik Nayak