Use git-update-ref in scripts.