summaryrefslogtreecommitdiff
path: root/t/t3206-range-diff.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-10-11 05:24:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-11 05:24:48 (GMT)
commit159cdabd87ac61081eeb22002780eb28689e19b3 (patch)
tree17b370b2b5013f719f92eb3c915ea83b4b3598ae /t/t3206-range-diff.sh
parent93424f1f7d790944168d46faf5222a388898d031 (diff)
parent937b76ed4970214837314e26265b78793e6653ed (diff)
downloadgit-159cdabd87ac61081eeb22002780eb28689e19b3.zip
git-159cdabd87ac61081eeb22002780eb28689e19b3.tar.gz
git-159cdabd87ac61081eeb22002780eb28689e19b3.tar.bz2
Merge branch 'js/range-diff-noprefix'
"git range-diff" segfaulted when diff.noprefix configuration was used, as it blindly expected the patch it internally generates to have the standard a/ and b/ prefixes. The command now forces the internal patch to be built without any prefix, not to be affected by any end-user configuration. * js/range-diff-noprefix: range-diff: internally force `diff.noprefix=true`
Diffstat (limited to 't/t3206-range-diff.sh')
-rwxr-xr-xt/t3206-range-diff.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t3206-range-diff.sh b/t/t3206-range-diff.sh
index 0120f76..64b66f2 100755
--- a/t/t3206-range-diff.sh
+++ b/t/t3206-range-diff.sh
@@ -461,4 +461,8 @@ test_expect_success 'format-patch --range-diff as commentary' '
grep "> 1: .* new message" 0001-*
'
+test_expect_success 'range-diff overrides diff.noprefix internally' '
+ git -c diff.noprefix=true range-diff HEAD^...
+'
+
test_done