`ref` should be `sha` here since that is the variable name