git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] clone: fix options '-o' and '--origin' to be recognised again

From
MRMarco Roeland <marco.roeland@xs4all.nl>
Date
Dec 19, 2007, 09:15 UTC
Message-ID
<20071219091515.GA20707@fiberbit.xs4all.nl>
Due to a subtle typo in a shell case pattern neither alternative worked.
Signed-off-by: Marco Roeland <marco.roeland@xs4all.nl>
---
 This is a regression in 'next', introduced on Nov 4th by commit 94362599
 "Migrate git-clone to use git-rev-parse --parseopt". Added Kristian as
 he works on the builtin version; perhaps nice for a test case (!).
 git-clone.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-clone.sh b/git-clone.sh
index 9a160ee..b4e858c 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -152,7 +152,7 @@ do
 		die "clones are always made with separate-remote layout" ;;
 	--reference)
 		shift; reference="$1" ;;
-	-o,--origin)
+	-o|--origin)
 		shift;
 		case "$1" in
 		'')
-- 
1.5.4.rc0.1162.g3bfea
Next: Junio C Hamano
Message 1 of 3 in “clone: fix options '-o' and '--origin' to be recognised again”
  1. clone: fix options '-o' and '--origin' to be recognised againMarco Roeland, Dec 19, 2007
  2. Junio C HamanoDec 19, 2007
  3. Jeff KingDec 19, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.