Support other references other than implicit HEAD