threads / patch / 49894

patchtransport-helper.c: do not translate a string twice

Subject: [PATCH] transport-helper.c: do not translate a string twice

## tl;dr

2 messages between Nov 26, 2018 and Nov 29, 2018. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Nguyễn Thái Ngọc Duy· Nov 26, 2018, 19:57 UTC · lore
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 My bad.
 transport-helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to transport-helper.c +1 −1
diff --git a/transport-helper.c b/transport-helper.c
index 7213fa0d32..bf225c698f 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -573,7 +573,7 @@ static int run_connect(struct transport *transport, struct strbuf *cmdbuf)
 			fprintf(stderr, "Debug: Falling back to dumb "
 				"transport.\n");
 	} else {
-		die(_(_("unknown response to connect: %s")),
+		die(_("unknown response to connect: %s"),
 		    cmdbuf->buf);
 	}
 
-- 
2.19.1.1327.g328c130451.dirty
Junio C Hamano· Nov 29, 2018, 06:30 UTC · re: Nguyễn Thái Ngọc Duy · lore

Re: [PATCH] transport-helper.c: do not translate a string twice

Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
Show 18 quoted lines
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
>  My bad.
>
>  transport-helper.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/transport-helper.c b/transport-helper.c
> index 7213fa0d32..bf225c698f 100644
> --- a/transport-helper.c
> +++ b/transport-helper.c
> @@ -573,7 +573,7 @@ static int run_connect(struct transport *transport, struct strbuf *cmdbuf)
>  			fprintf(stderr, "Debug: Falling back to dumb "
>  				"transport.\n");
>  	} else {
> -		die(_(_("unknown response to connect: %s")),
> +		die(_("unknown response to connect: %s"),
>  		    cmdbuf->buf);
Thanks.

← back to recent threads