Use long sha version in MR widget copy to clipboard button
Problem
After an MR has been merged, the MR widget will show a section with the commit sha
of the merge:
The copy button copies the short sha
version. However, if you are cherry-picking commits you might see:
error: short SHA1 958c0475 is ambiguous
hint: The candidates are:
hint: 958c047516 commit 2018-06-16 - Merge branch '47068-pipeline-dropdown-shifts-around-at-smaller-screen-sizes' into 'master'
hint: 958c047591 tree
fatal: bad revision '958c0475
In other places where we have the copy to clipboard button next to a commit sha
, we copy the long version.
Solution
Use the long sha
version instead of the short one. We can use merge_commit_sha
instead.
/cc @smcgivern