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>
This commit is contained in:
parent
6df8755c7b
commit
ab7c7c219b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user