]>
Commit | Line | Data |
---|---|---|
9ec398d2 LT |
1 | #!/bin/sh |
2 | ||
3 | test_description='Test am with auto.crlf' | |
4 | ||
b2e5d75d | 5 | TEST_PASSES_SANITIZE_LEAK=true |
9ec398d2 LT |
6 | . ./test-lib.sh |
7 | ||
8 | cat >patchfile <<\EOF | |
9 | From 38be10072e45dd6b08ce40851e3fca60a31a340b Mon Sep 17 00:00:00 2001 | |
10 | From: Marius Storm-Olsen <x@y.com> | |
11 | Date: Thu, 23 Aug 2007 13:00:00 +0200 | |
12 | Subject: test1 | |
13 | ||
14 | --- | |
dc801e71 | 15 | foo | 1 + |
9ec398d2 LT |
16 | 1 files changed, 1 insertions(+), 0 deletions(-) |
17 | create mode 100644 foo | |
18 | ||
19 | diff --git a/foo b/foo | |
20 | new file mode 100644 | |
21 | index 0000000000000000000000000000000000000000..5716ca5987cbf97d6bb54920bea6adde242d87e6 | |
22 | --- /dev/null | |
23 | +++ b/foo | |
24 | @@ -0,0 +1 @@ | |
25 | +bar | |
26 | EOF | |
27 | ||
28 | test_expect_success 'setup' ' | |
29 | ||
30 | git config core.autocrlf true && | |
31 | echo foo >bar && | |
32 | git add bar && | |
33 | test_tick && | |
34 | git commit -m initial | |
35 | ||
36 | ' | |
37 | ||
38 | test_expect_success 'am' ' | |
39 | ||
cb3a160d | 40 | git am -3 <patchfile && |
9ec398d2 LT |
41 | git diff-files --name-status --exit-code |
42 | ||
43 | ' | |
44 | ||
45 | test_done |