Skip to content

Commit 0160f7e

Browse files
avargitster
authored andcommitted
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 e65123a (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>
1 parent ebf3c04 commit 0160f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/rebase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
19181918
&options.orig_head))
19191919
options.head_name = NULL;
19201920
else
1921-
die(_("fatal: no such branch/commit '%s'"),
1921+
die(_("no such branch/commit '%s'"),
19221922
branch_name);
19231923
} else if (argc == 0) {
19241924
/* Do not need to switch branches, we are already on it. */

0 commit comments

Comments
 (0)