[PATCH] local-pull: implement fetch_ref()