threads / patch / 45688

patchsubmodule--helper: fix typo in is_active error message

Subject: [PATCH] submodule--helper: fix typo in is_active error message

## tl;dr

2 messages between Apr 13, 2017 and Apr 13, 2017. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Stefan Beller· Apr 13, 2017, 22:08 UTC · lore
Signed-off-by: Stefan Beller <sbeller@google.com>
---
 builtin/submodule--helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to builtin/submodule--helper.c +1 −1
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
index e42e671014..b1d4269e10 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -1145,7 +1145,7 @@ static int absorb_git_dirs(int argc, const char **argv, const char *prefix)
 static int is_active(int argc, const char **argv, const char *prefix)
 {
 	if (argc != 2)
-		die("submodule--helper is-active takes exactly 1 arguments");
+		die("submodule--helper is-active takes exactly 1 argument");
 
 	gitmodules_config();
 
-- 
2.12.2.603.g7b28dc31ba
Brandon Williams· Apr 13, 2017, 23:10 UTC · re: Stefan Beller · lore

Re: [PATCH] submodule--helper: fix typo in is_active error message

On 04/13, Stefan Beller wrote:
Show 15 quoted lines
> Signed-off-by: Stefan Beller <sbeller@google.com>
> ---
>  builtin/submodule--helper.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
> index e42e671014..b1d4269e10 100644
> --- a/builtin/submodule--helper.c
> +++ b/builtin/submodule--helper.c
> @@ -1145,7 +1145,7 @@ static int absorb_git_dirs(int argc, const char **argv, const char *prefix)
>  static int is_active(int argc, const char **argv, const char *prefix)
>  {
>  	if (argc != 2)
> -		die("submodule--helper is-active takes exactly 1 arguments");
> +		die("submodule--helper is-active takes exactly 1 argument");
Obvious fix.  Thanks!
Show 6 quoted lines
>  
>  	gitmodules_config();
>  
> -- 
> 2.12.2.603.g7b28dc31ba
> 
-- 
Brandon Williams

← back to recent threads