summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa807bc)
raw | patch | inline | side by side (parent: aa807bc)
author | Heikki Orsila <heikki.orsila@iki.fi> | |
Thu, 1 Nov 2007 14:21:39 +0000 (16:21 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 4 Nov 2007 04:44:13 +0000 (21:44 -0700) |
Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
Documentation/git-clone.txt | patch | blob | history | |
git-clone.sh | patch | blob | history |
index cca14d6b5df042fcf48889e5ff00285ffc4c3009..14e58f3866e3a4e7d1da01753cb68082e88ae2f6 100644 (file)
'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 0ea3c24f59e32055e4d514e55fe3a6f6be095f9c..3f006936085cedcdca436455643b05d2198e3606 100755 (executable)
--- a/git-clone.sh
+++ b/git-clone.sh
}
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() {
*,--depth)
shift
depth="--depth=$1";;
+ *,--)
+ shift
+ break ;;
*,-*) usage ;;
*) break ;;
esac