reflog: fix expire --single-worktree
[git/gitster.git] / t / t0023-crlf-am.sh
blob575805513a3d7f6d27fee7ceefcb75e71753f1f9
1 #!/bin/sh
3 test_description='Test am with auto.crlf'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
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
14 ---
15 foo | 1 +
16 1 files changed, 1 insertions(+), 0 deletions(-)
17 create mode 100644 foo
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
28 test_expect_success 'setup' '
30 git config core.autocrlf true &&
31 echo foo >bar &&
32 git add bar &&
33 test_tick &&
34 git commit -m initial
38 test_expect_success 'am' '
40 git am -3 <patchfile &&
41 git diff-files --name-status --exit-code
45 test_done