Use ref instead of sha.