rebase: emit one "fatal" in "fatal: fatal: <error>"
PATCH 1/1 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 <[email protected]>
--- builtin/rebase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
builtin/rebase.c +1 -1
@@ -1918,7 +1918,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix) &options.orig_head)) options.head_name =NULL ; else - die(_("fatal: no such branch/commit '%s'"), + die(_("no such branch/commit '%s'"), branch_name); }else if (argc ==0 ) {/* Do not need to switch branches, we are already on it. */
Signature · 1 line
2.33.0.662.gbc81f8cbdca
Quoted 15 lines · Ævar Arnfjörð Bjarmason
The
die()routine adds a "fatal: " prefix, there is no reason to add another one. Fixes code added ine65123a71d0(builtin rebase: supportgit rebase <upstream> <switch-to>, 2018-09-04).Signed-off-by Ævar Arnfjörð Bjarmason <[email protected]>--- builtin/rebase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)builtin/rebase.c +0
-0
builtin/rebase.c int cmd_rebase(int argc, const char **argv, const char *prefix) · line 1924
Quoted 8 lines
builtin/rebase.c +1
-1@@ -1918,7 +1918,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix) &options.orig_head)) options.head_name =NULL ; else - die(_("fatal: no such branch/commit '%s'"), + die(_("no such branch/commit '%s'"), branch_name); }else if (argc ==0 ) {/* Do not need to switch branches, we are already on it. */
Makes sense. Thank you for fixing this.
Best,
Pratik Karki