From: Heikki Orsila Date: Thu, 1 Nov 2007 14:21:39 +0000 (+0200) Subject: git-clone: honor "--" to end argument parsing X-Git-Tag: v1.5.4-rc0~280 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=19391c371cec06da6cca45dbe3c212bd479cc48c;p=git.git git-clone: honor "--" to end argument parsing Signed-off-by: Heikki Orsila --- diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index cca14d6b5..14e58f386 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -12,7 +12,7 @@ SYNOPSIS 'git-clone' [--template=] [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [-o ] [-u ] [--reference ] - [--depth ] [] + [--depth ] [--] [] DESCRIPTION ----------- diff --git a/git-clone.sh b/git-clone.sh index 0ea3c24f5..3f0069360 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -14,7 +14,7 @@ die() { } usage() { - die "Usage: $0 [--template=] [--reference ] [--bare] [-l [-s]] [-q] [-u ] [--origin ] [--depth ] [-n] []" + die "Usage: $0 [--template=] [--reference ] [--bare] [-l [-s]] [-q] [-u ] [--origin ] [--depth ] [-n] [--] []" } get_repo_base() { @@ -160,6 +160,9 @@ while *,--depth) shift depth="--depth=$1";; + *,--) + shift + break ;; *,-*) usage ;; *) break ;; esac