Oops. Reposting the patch. This patch handles "--" argument for git-clone. Signed-off-by: Heikki Orsila <heikki.orsila@xxxxxx> >From bd2d661c565062eacc80dda90f3978303308f9bb Mon Sep 17 00:00:00 2001 From: Heikki Orsila <heikki.orsila@xxxxxx> Date: Thu, 1 Nov 2007 16:21:39 +0200 Subject: [PATCH] Make git-clone obey "--" (end argument parsing) --- Documentation/git-clone.txt | 2 +- git-clone.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index 253f4f0..7fdcd42 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -12,7 +12,7 @@ SYNOPSIS 'git-clone' [--template=<template_directory>] [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [-o <name>] [-u <upload-pack>] [--reference <repository>] - [--depth <depth>] <repository> [<directory>] + [--depth <depth>] [--] <repository> [<directory>] DESCRIPTION ----------- diff --git a/git-clone.sh b/git-clone.sh index 0ea3c24..3f00693 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 -- 1.5.3.4.498.g9c514-dirty - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html