t: use update-ref and show-ref to reading/writing refs