summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-07-18 19:20:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-18 19:20:29 (GMT)
commit2516b4711f6e180516162c384b7e94832e7189f6 (patch)
tree313a9be8723be077ed423d32822bdc61d8c4132a /t
parentd349e188abb88879f4c2cae9f089509b25606928 (diff)
parent15b76c1fb3ab013b99498c9dca333aaa4808927e (diff)
downloadgit-2516b4711f6e180516162c384b7e94832e7189f6.zip
git-2516b4711f6e180516162c384b7e94832e7189f6.tar.gz
git-2516b4711f6e180516162c384b7e94832e7189f6.tar.bz2
Merge branch 'xy/format-patch-prereq-patch-id-fix'
Recently added "--base" option to "git format-patch" command did not correctly generate prereq patch ids. * xy/format-patch-prereq-patch-id-fix: format-patch: clear UNINTERESTING flag before prepare_bases
Diffstat (limited to 't')
-rwxr-xr-xt/t4014-format-patch.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
index 028d550..53880da 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -1554,13 +1554,15 @@ test_expect_success 'format-patch -o overrides format.outputDirectory' '
test_expect_success 'format-patch --base' '
git checkout side &&
- git format-patch --stdout --base=HEAD~3 -1 | tail -n 7 >actual &&
+ git format-patch --stdout --base=HEAD~3 -1 | tail -n 7 >actual1 &&
+ git format-patch --stdout --base=HEAD~3 HEAD~.. | tail -n 7 >actual2 &&
echo >expected &&
echo "base-commit: $(git rev-parse HEAD~3)" >>expected &&
echo "prerequisite-patch-id: $(git show --patch HEAD~2 | git patch-id --stable | awk "{print \$1}")" >>expected &&
echo "prerequisite-patch-id: $(git show --patch HEAD~1 | git patch-id --stable | awk "{print \$1}")" >>expected &&
signature >> expected &&
- test_cmp expected actual
+ test_cmp expected actual1 &&
+ test_cmp expected actual2
'
test_expect_success 'format-patch --base errors out when base commit is in revision list' '