Updates ref to tag