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

Bug v2.23.0: command help for 'git push --recurse-submodules' is incorrect

From
AWAndrew White <andrew.white@audinate.com>
Date
Apr 27, 2020, 01:31 UTC
Message-ID
<346FFB0C-7419-4E2D-B593-9F64F9403D11@audinatedante.onmicrosoft.com>
System: Mac OS X 10.12.6
git --version: git version 2.23.0
	% git push --\?
	error: unknown option `?'
	usage: git push [<options>] [<repository> [<refspec>...]]
	[snip]
	    --recurse-submodules[=(check|on-demand|no)]
	                          control recursive pushing of submodules
I read this as saying that the argument to recurse-submodules is optional.  However,
	% git push --recurse-submodules
	fatal: recurse-submodules missing parameter
	zsh: exit 128   git push --recurse-submodules
Manual page (git push --help) seems to indicate that argument to recurse-submodules is required.
I'm guessing it's just the command help that's incorrect.

-- Andrew

Next: Denton Liu
Message 1 of 9 in “Bug v2.23.0: command help for 'git push --recurse-submodules' is incorrect”
  1. Andrew WhiteApr 27, 2020
  2. push: unset PARSE_OPT_OPTARG for --recurse-submodulesDenton Liu, Apr 27, 2020
  3. Jeff KingApr 27, 2020
  4. Junio C HamanoApr 27, 2020
  5. Use OPT_CALLBACK and OPT_CALLBACK_FDenton Liu, Apr 28, 2020
  6. Jeff KingApr 28, 2020
  7. Junio C HamanoApr 28, 2020
  8. Junio C HamanoApr 28, 2020
  9. Denton LiuApr 28, 2020

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.