projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use blob_, commit_, tag_, and tree_type throughout.
[git.git]
/
git-clone.sh
diff --git
a/git-clone.sh
b/git-clone.sh
index
0e8a57d
..
823c74b
100755
(executable)
--- a/
git-clone.sh
+++ b/
git-clone.sh
@@
-98,6
+98,7
@@
close FH;
'
quiet=
'
quiet=
+local=no
use_local=no
local_shared=no
no_checkout=
use_local=no
local_shared=no
no_checkout=
@@
-156,6
+157,13
@@
do
shift
done
shift
done
+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
@@
-179,8
+187,6
@@
fi
# Turn the source into an absolute path if
# it is local
# Turn the source into an absolute path if
# it is local
-repo="$1"
-local=no
if base=$(get_repo_base "$repo"); then
repo="$base"
local=yes
if base=$(get_repo_base "$repo"); then
repo="$base"
local=yes