If the user does not set a merge strategy for git-pull, let git-merge calculate a default strategy. This may be preferable to the earlier patch involving NO_PYTHON. Signed-off-by: Mark Hollomon <markhollomon@xxxxxxxxxxx> --- git-pull.sh | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) 54e2c920b8ad979bc75d25ae73300be6077f46a0 diff --git a/git-pull.sh b/git-pull.sh index 6caf1aa..7764b70 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -71,19 +71,15 @@ case "$merge_head" in ;; ?*' '?*) var=`git repo-config --get pull.octopus` - if test '' = "$var" + if test '' != "$var" then - strategy_default_args='-s octopus' - else strategy_default_args="-s $var" fi ;; *) var=`git repo-config --get pull.twohead` - if test '' = "$var" - then - strategy_default_args='-s recursive' - else + if test '' != "$var" + then strategy_default_args="-s $var" fi ;; -- 1.2.4.gea75 - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html