diff options
author | Mark Hollomon <markhollomon@comcast.net> | 2006-03-16 01:51:41 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-03-16 03:14:33 +0300 |
commit | c8e2db00f9622af6e5f640443dfbe63bb1af39e0 (patch) | |
tree | 7c32c149066695f8cfa08abaa7a7a31f5118b0ac /git-pull.sh | |
parent | c982647310fc5acd0bd6ebc408e70470447b387f (diff) |
Let merge set the default strategy.
If the user does not set a merge strategy for git-pull,
let git-merge calculate a default strategy.
[jc: with minor stylistic tweaks]
Signed-off-by: Mark Hollomon <markhollomon@comcast.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-pull.sh')
-rwxr-xr-x | git-pull.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/git-pull.sh b/git-pull.sh index 6caf1aad471..17fda26721b 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 -n "$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 -n "$var" + then strategy_default_args="-s $var" fi ;; |