Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2021-09-08 00:05:03 +0300
committerJunio C Hamano <gitster@pobox.com>2021-09-08 07:45:32 +0300
commitab7c7c219b487ad8cde94c8c1155977cb2efd52b (patch)
tree86ac299a9f0ac523a55becc1989d42b4a10d0b6e /builtin/remote.c
parent6df8755c7b953665bb1960e660fceb5acc2b2a23 (diff)
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>
Diffstat (limited to 'builtin/remote.c')
-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)