git-clone without a repo isn't useful at all. print message and get
out asap.
This patch also move the variable 'local' to where other variables are
initialized.
Signed-off-by: Yasushi SHOJI <yashi@atmark-techno.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
use_local=no
local_shared=no
no_checkout=
use_local=no
local_shared=no
no_checkout=
+repo="$1"
+if test -z "$repo"
+then
+ echo >&2 'you must specify a repository to clone.'
+ exit 1
+fi
+
# --bare implies --no-checkout
if test yes = "$bare"
then
# --bare implies --no-checkout
if test yes = "$bare"
then
# Turn the source into an absolute path if
# it is local
# Turn the source into an absolute path if
# it is local
if base=$(get_repo_base "$repo"); then
repo="$base"
local=yes
if base=$(get_repo_base "$repo"); then
repo="$base"
local=yes