clone: abort if no dir name could be guessed
authorPatrick Steinhardt <ps@pks.im>
Mon, 10 Aug 2015 15:48:25 +0000 (17:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Aug 2015 18:02:11 +0000 (11:02 -0700)
commitadef9561f0c8cf2c974d78adac0ae236e159e49f
treec915c91d374b3951d7ac138f56138aa9c34c7ba6
parent92722efec01f67a54b68c83fcbc3cd65f9fbb7b8
clone: abort if no dir name could be guessed

Due to various components of the URI being stripped off it may
happen that we fail to guess a directory name. We currently error
out with a message that it is impossible to create the working
tree '' in such cases. Instead, error out early with a sensible
error message hinting that a directory name should be specified
manually on the command line.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c