2010/7/31 Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx>: <snip> > diff --git a/upload-pack.c b/upload-pack.c > index e432e83..9b6710a 100644 > --- a/upload-pack.c > +++ b/upload-pack.c <snip> > @@ -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"? ��.n��������+%������w��{.n��������n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�