summaryrefslogtreecommitdiff
path: root/t
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 /t
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 't')
-rwxr-xr-xt/t7601-merge-pull-config.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t7601-merge-pull-config.sh b/t/t7601-merge-pull-config.sh
index f768c900ab..c6c44ec570 100755
--- a/t/t7601-merge-pull-config.sh
+++ b/t/t7601-merge-pull-config.sh
@@ -45,6 +45,14 @@ test_expect_success 'fast-forward pull succeeds with "true" in pull.ff' '
test "$(git rev-parse HEAD)" = "$(git rev-parse c1)"
'
+test_expect_success 'pull.ff=true overrides merge.ff=false' '
+ git reset --hard c0 &&
+ test_config merge.ff false &&
+ test_config pull.ff true &&
+ git pull . c1 &&
+ test "$(git rev-parse HEAD)" = "$(git rev-parse c1)"
+'
+
test_expect_success 'fast-forward pull creates merge with "false" in pull.ff' '
git reset --hard c0 &&
test_config pull.ff false &&