Re: [PATCH 07/16] upload-pack: support subtree pack
- From
Elijah Newren <newren@gmail.com>
- Date
- Aug 2, 2010, 04:27 UTC
- Message-ID
- <AANLkTi=jSFa0B9iSNZdEBOjDgtuECkOxOEcO2ujVeUwb@mail.gmail.com>
- In-Reply-To
- <1280593105-22015-8-git-send-email-pclouds@gmail.com>
2010/7/31 Nguyễn Thái Ngọc Duy <pclouds@gmail.com>: <snip>
> diff --git a/upload-pack.c b/upload-pack.c > index e432e83..9b6710a 100644 > --- a/upload-pack.c > +++ b/upload-pack.c
<snip>
Show 9 quoted lines
> @@ -505,6 +505,20 @@ static void receive_needs(void)
> if (debug_fd)
> write_in_full(debug_fd, line, len);
>
> + if (!prefixcmp(line, "subtree ")) {
> + int len;
> + char *subtree;
> + if (core_subtree)
> + die("sorry, only one subtree supported");I'm not sure users would understand this error message; perhaps something more like "Fetching/cloning from a subtree-sparse repository not supported"?