Specify the branch instead of full ref name

just use a virtual method on the model to get the full ref instead