Can not commit on the same branch simultaneously

Gitaly may not handle concurrent commit very well. If two commits happen simultaneously, one would fail with internal error.

Steps to reproduce:

  1. On browser A: edit a file on a branch and commit
  2. On browser B: edit the same file on the same branch and commit
  3. One of the two commits would fail:

image

Expected behavior: it should indicate:

image

Edited by sting shen