]> git.ipfire.org Git - thirdparty/git.git/commitdiff
tag: error when git-column fails
authorRubén Justo <rjusto@gmail.com>
Tue, 13 Feb 2024 23:36:38 +0000 (00:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Feb 2024 18:16:40 +0000 (10:16 -0800)
If the user asks for the list of tags to be displayed in columns
("--columns"), a child git-column process is used to format the output
as expected.

In a rare situation where we encounter a problem spawning that child
process, we will work erroneously.

Make noticeable we're having a problem executing git-column, so the user
can act accordingly.

Signed-off-by: Rubén Justo <rjusto@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/tag.c

index d428c45dc8d812255336ed5da20804981d3be4ab..53f8bfd907d666ead8c955ac99cb979e5a0ef045 100644 (file)
@@ -537,7 +537,8 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
                        struct column_options copts;
                        memset(&copts, 0, sizeof(copts));
                        copts.padding = 2;
-                       run_column_filter(colopts, &copts);
+                       if (run_column_filter(colopts, &copts))
+                               die(_("could not start 'git column'"));
                }
                filter.name_patterns = argv;
                ret = list_tags(&filter, sorting, &format);