diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-05-26 13:24:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-26 13:24:44 -0700 |
commit | 22a1ae6ef2ba77a20113bbee6f706ec47e6440c5 (patch) | |
tree | a0e534be2cee8b603cf3dd20879a31ce673e923e /t | |
parent | 14230580af96353b911ec1de85517d71c8cfe6b8 (diff) | |
parent | db9bb280ed7df7858a2de5d1d0334114dd837be0 (diff) | |
download | git-22a1ae6ef2ba77a20113bbee6f706ec47e6440c5.tar.gz git-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-x | t/t7601-merge-pull-config.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t7601-merge-pull-config.sh b/t/t7601-merge-pull-config.sh index f768c900a..c6c44ec57 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 && |