Re: [PATCH] clone --branch: refuse to clone if upstream repo is empty

2013-10-14 Thread Duy Nguyen
On Fri, Oct 11, 2013 at 11:49 PM, Ralf Thielow wrote: > Since 920b691 (clone: refuse to clone if --branch > points to bogus ref) we refuse to clone with option > "-b" if the specified branch does not exist in the > (non-empty) upstream. If the upstream repository is empty, > the branch doesn't exi

[PATCH] clone --branch: refuse to clone if upstream repo is empty

2013-10-11 Thread Ralf Thielow
Since 920b691 (clone: refuse to clone if --branch points to bogus ref) we refuse to clone with option "-b" if the specified branch does not exist in the (non-empty) upstream. If the upstream repository is empty, the branch doesn't exist, either. So refuse the clone too. Signed-off-by: Ralf Thielow