Draft: Add WriteRef test case for overwriting truncated refs
Follow up from gitlab!101169 (comment 1137275415)
It really only goes through the standard error handling, so I'm not sure if we really need this except that this case was specifically covered by gitlab rails.
/cc @stanhu
Edited by James Fargher