Merge branch 'ah/pull'
Earlier we taught "git pull" to warn when the user does not say the histories need to be merged, rebased or accepts only fast- forwarding, but the warning triggered for those who have set the pull.ff configuration variable. * ah/pull: pull: don't warn if pull.ff has been set
This commit is contained in:
@ -344,8 +344,7 @@ static enum rebase_type config_get_rebase(void)
|
||||
if (!git_config_get_value("pull.rebase", &value))
|
||||
return parse_config_rebase("pull.rebase", value, 1);
|
||||
|
||||
if (opt_verbosity >= 0 &&
|
||||
(!opt_ff || strcmp(opt_ff, "--ff-only"))) {
|
||||
if (opt_verbosity >= 0 && !opt_ff) {
|
||||
warning(_("Pulling without specifying how to reconcile divergent branches is\n"
|
||||
"discouraged. You can squelch this message by running one of the following\n"
|
||||
"commands sometime before your next pull:\n"
|
||||
|
Reference in New Issue
Block a user