aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2021-09-07 21:05:03 +0000
committerJunio C Hamano <gitster@pobox.com>2021-09-07 21:45:32 -0700
commitab7c7c219b487ad8cde94c8c1155977cb2efd52b (patch)
tree86ac299a9f0ac523a55becc1989d42b4a10d0b6e
parent6df8755c7b953665bb1960e660fceb5acc2b2a23 (diff)
downloadgit-ab7c7c219b487ad8cde94c8c1155977cb2efd52b.tar.gz
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>
-rw-r--r--builtin/remote.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index 7f88e6ce9d..5705e088e5 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -318,6 +318,9 @@ static int config_read_branches(const char *key, const char *value, void *cb)
* truth value with >= REBASE_TRUE.
*/
info->rebase = rebase_parse_value(value);
+ if (info->rebase == REBASE_INVALID)
+ warning(_("unhandled branch.%s.rebase=%s; assuming "
+ "'true'"), name, value);
break;
case PUSH_REMOTE:
if (info->push_remote_name)