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

Re: [PATCH] submodule add: show 'add --dry-run' stderr when aborting

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 16, 2020, 16:17 UTC
Message-ID
<nycvar.QRO.7.76.6.2001161711310.46@tvgsbejvaqbjf.bet>
In-Reply-To
<20200108003121.28034-1-kyle@kyleam.com>
Hi (in particular Junio),
On Tue, 7 Jan 2020, Kyle Meyer wrote:
Show 13 quoted lines
> diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
> index 7f75bb1be6..42a00f95b9 100755
> --- a/t/t7400-submodule-basic.sh
> +++ b/t/t7400-submodule-basic.sh
> @@ -156,9 +156,9 @@ test_expect_success 'submodule add to .gitignored path fails' '
>  	(
>  		cd addtest-ignore &&
>  		cat <<-\EOF >expect &&
> -		The following path is ignored by one of your .gitignore files:
> +		The following paths are ignored by one of your .gitignore files:
>  		submod
> -		Use -f if you really want to add it.
> +		Use -f if you really want to add them.

I think this got mis-merged when merging down `km/submodule-add-errmsg`: it needs to be prefixed with `hint:` because of `hw/advice-add-nothing`, i.e.

-- snipsnap --
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
index 42a00f95b9d..a6973a3003c 100755
--- a/t/t7400-submodule-basic.sh
+++ b/t/t7400-submodule-basic.sh
@@ -158,7 +158,7 @@ test_expect_success 'submodule add to .gitignored path fails' '
 		cat <<-\EOF >expect &&
 		The following paths are ignored by one of your .gitignore files:
 		submod
-		Use -f if you really want to add them.
+		hint: Use -f if you really want to add them.
 		EOF
 		# Does not use test_commit due to the ignore
 		echo "*" > .gitignore &&
Previous: Kyle MeyerNext: Junio C Hamano
Message 4 of 5 in “submodule add: show 'add --dry-run' stderr when aborting”
  1. submodule add: show 'add --dry-run' stderr when abortingKyle Meyer, Jan 8, 2020
  2. Josh SteadmonJan 8, 2020
  3. Kyle MeyerJan 9, 2020
  4. Johannes SchindelinJan 16, 2020
  5. Junio C HamanoJan 16, 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.