Use checkout ref instead branch for clone