fetch: support fetching from a shallow repository