Re: [PATCH] fetch-pack.c: show correct command name that fails

2013-09-18 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > When --shallow-file is added to the command line, it has to be > before the subcommand name, the first argument won't be the command > name any more. Stop assuming that and keep track of the command name > explicitly. > > Signed-off-by: Nguyễn Thái Ngọc Duy > ---

Re: [PATCH] fetch-pack.c: show correct command name that fails

2013-09-18 Thread Jeff King
On Wed, Sep 18, 2013 at 11:16:15AM -0700, Junio C Hamano wrote: > I wondered if this is something we can have a test for easily. > Unlike the "--upload-pack" option, there is no way for the receiving > end to choose which index-pack (or unpack-objects) to run, but we > may force a failure by tempo

[PATCH] fetch-pack.c: show correct command name that fails

2013-09-18 Thread Nguyễn Thái Ngọc Duy
When --shallow-file is added to the command line, it has to be before the subcommand name, the first argument won't be the command name any more. Stop assuming that and keep track of the command name explicitly. Signed-off-by: Nguyễn Thái Ngọc Duy --- fetch-pack.c | 10 +- 1 file changed