diff options
author | Heikki Orsila <heikki.orsila@iki.fi> | 2007-11-01 16:21:39 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-03 21:44:13 -0700 |
commit | 19391c371cec06da6cca45dbe3c212bd479cc48c (patch) | |
tree | 080aafb2331efd885b74ecc70f3af168e0520a30 /git-clone.sh | |
parent | aa807bc2663d69d6adb1d823231ba4b6d30d4860 (diff) | |
download | git-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-x | git-clone.sh | 5 |
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 |