remote: warn about unhandled branch.<name>.rebase values

We ignore them silently, but it actually makes sense to warn the users that their config setting has no effect. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Reviewed-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Sep 7, 2021 at 21:05 UTC ab7c7c219b487ad8cde94c8c1155977cb2efd52b
1 file changed +3
builtin/remote.c
+3
@@ -318,6 +318,9 @@ static int config_read_branches(const char *key, const char *value, void *cb)
318 * truth value with >= REBASE_TRUE.
319 */
320 info->rebase = rebase_parse_value(value);
321 + if (info->rebase == REBASE_INVALID)
322 + warning(_("unhandled branch.%s.rebase=%s; assuming "
323 + "'true'"), name, value);
324 break;
325 case PUSH_REMOTE:
326 if (info->push_remote_name)