]> git.ipfire.org Git - thirdparty/git.git/blame - t/t0023-crlf-am.sh
The third batch
[thirdparty/git.git] / t / t0023-crlf-am.sh
CommitLineData
9ec398d2
LT
1#!/bin/sh
2
3test_description='Test am with auto.crlf'
4
b2e5d75d 5TEST_PASSES_SANITIZE_LEAK=true
9ec398d2
LT
6. ./test-lib.sh
7
8cat >patchfile <<\EOF
9From 38be10072e45dd6b08ce40851e3fca60a31a340b Mon Sep 17 00:00:00 2001
10From: Marius Storm-Olsen <x@y.com>
11Date: Thu, 23 Aug 2007 13:00:00 +0200
12Subject: test1
13
14---
dc801e71 15 foo | 1 +
9ec398d2
LT
16 1 files changed, 1 insertions(+), 0 deletions(-)
17 create mode 100644 foo
18
19diff --git a/foo b/foo
20new file mode 100644
21index 0000000000000000000000000000000000000000..5716ca5987cbf97d6bb54920bea6adde242d87e6
22--- /dev/null
23+++ b/foo
24@@ -0,0 +1 @@
25+bar
26EOF
27
28test_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
38test_expect_success 'am' '
39
cb3a160d 40 git am -3 <patchfile &&
9ec398d2
LT
41 git diff-files --name-status --exit-code
42
43'
44
45test_done