rebase: emit one "fatal" in "fatal: fatal: <error>"
The die() routine adds a "fatal: " prefix, there is no reason to add another one. Fixes code added in e65123a71d0 (builtin rebase: support `git rebase <upstream> <switch-to>`, 2018-09-04). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Aug 23, 2021 at 15:07 UTC
0160f7e7252f2fa40e591d5fa9a30674334050f9
1 file changed
+1
-1
builtin/rebase.c
+1
-1
@@ -1918,7 +1918,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
1918
&options.orig_head))
1919
options.head_name = NULL;
1920
else
1921
- die(_("fatal: no such branch/commit '%s'"),
1921
+ die(_("no such branch/commit '%s'"),
1922
branch_name);
1923
} else if (argc == 0) {
1924
/* Do not need to switch branches, we are already on it. */