Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-26 23:24:43 +0300
committerJunio C Hamano <gitster@pobox.com>2015-05-26 23:24:44 +0300
commit22a1ae6ef2ba77a20113bbee6f706ec47e6440c5 (patch)
treea0e534be2cee8b603cf3dd20879a31ce673e923e /git-pull.sh
parent14230580af96353b911ec1de85517d71c8cfe6b8 (diff)
parentdb9bb280ed7df7858a2de5d1d0334114dd837be0 (diff)
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
;;