summaryrefslogtreecommitdiff
path: root/git-pull.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-05-26 13:24:43 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-26 13:24:44 -0700
commit22a1ae6ef2ba77a20113bbee6f706ec47e6440c5 (patch)
treea0e534be2cee8b603cf3dd20879a31ce673e923e /git-pull.sh
parentMerge branch 'pt/pull-log-n' (diff)
parentpull: parse pull.ff as a bool or string (diff)
downloadtgif-22a1ae6ef2ba77a20113bbee6f706ec47e6440c5.tar.xz
Merge branch 'pt/pull-ff-vs-merge-ff'
The pull.ff configuration was supposed to override the merge.ff configuration, but it didn't. * pt/pull-ff-vs-merge-ff: pull: parse pull.ff as a bool or string pull: make pull.ff=true override merge.ff
Diffstat (limited to 'git-pull.sh')
-rwxr-xr-xgit-pull.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-pull.sh b/git-pull.sh
index b8ae005920..0917d0d056 100755
--- a/git-pull.sh
+++ b/git-pull.sh
@@ -54,8 +54,11 @@ then
fi
# Setup default fast-forward options via `pull.ff`
-pull_ff=$(git config pull.ff)
+pull_ff=$(bool_or_string_config pull.ff)
case "$pull_ff" in
+true)
+ no_ff=--ff
+ ;;
false)
no_ff=--no-ff
;;