summaryrefslogtreecommitdiff
path: root/git-clone.sh
diff options
context:
space:
mode:
authorHeikki Orsila <heikki.orsila@iki.fi>2007-11-01 16:21:39 +0200
committerJunio C Hamano <gitster@pobox.com>2007-11-03 21:44:13 -0700
commit19391c371cec06da6cca45dbe3c212bd479cc48c (patch)
tree080aafb2331efd885b74ecc70f3af168e0520a30 /git-clone.sh
parentaa807bc2663d69d6adb1d823231ba4b6d30d4860 (diff)
downloadgit-19391c371cec06da6cca45dbe3c212bd479cc48c.tar.gz
git-clone: honor "--" to end argument parsing
Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
Diffstat (limited to 'git-clone.sh')
-rwxr-xr-xgit-clone.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-clone.sh b/git-clone.sh
index 0ea3c24f59..3f00693608 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -14,7 +14,7 @@ die() {
}
usage() {
- die "Usage: $0 [--template=<template_directory>] [--reference <reference-repo>] [--bare] [-l [-s]] [-q] [-u <upload-pack>] [--origin <name>] [--depth <n>] [-n] <repo> [<dir>]"
+ die "Usage: $0 [--template=<template_directory>] [--reference <reference-repo>] [--bare] [-l [-s]] [-q] [-u <upload-pack>] [--origin <name>] [--depth <n>] [-n] [--] <repo> [<dir>]"
}
get_repo_base() {
@@ -160,6 +160,9 @@ while
*,--depth)
shift
depth="--depth=$1";;
+ *,--)
+ shift
+ break ;;
*,-*) usage ;;
*) break ;;
esac