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
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-04-07 07:04:29 +0400
committerJunio C Hamano <gitster@pobox.com>2008-04-07 07:04:29 +0400
commita1c0dca43a3513574e5bebb38989671960cdaf35 (patch)
treef67bb600dd5da2c3038dff2948a70f267cf237b2 /t
parentaba201c6e8d9934157b9ba39b8e6b54c2fa7b6e1 (diff)
parentee5a317e0130ab2db59db97c644576335530512d (diff)
Merge branch 'jc/maint-apply-match-beginning'
* jc/maint-apply-match-beginning: Fix "git apply" to correctly enforce "match at the beginning"
Diffstat (limited to 't')
-rwxr-xr-xt/t4104-apply-boundary.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t4104-apply-boundary.sh b/t/t4104-apply-boundary.sh
index 64f34e3298..43943ab8ca 100755
--- a/t/t4104-apply-boundary.sh
+++ b/t/t4104-apply-boundary.sh
@@ -112,4 +112,17 @@ do
'
done
+test_expect_success 'two lines' '
+
+ >file &&
+ git add file &&
+ echo aaa >file &&
+ git diff >patch &&
+ git add file &&
+ echo bbb >file &&
+ git add file &&
+ test_must_fail git apply --check patch
+
+'
+
test_done