Merge branch 'mm/maint-gitweb-project-maxdepth'
[alt-git.git] / t / t4106-apply-stdin.sh
blob72467a1e8ee28c4ac2a3d532bd65b9b5503cff06
1 #!/bin/sh
3 test_description='git apply --numstat - <patch'
5 . ./test-lib.sh
7 test_expect_success setup '
8 echo hello >text &&
9 git add text &&
10 echo goodbye >text &&
11 git diff >patch
14 test_expect_success 'git apply --numstat - < patch' '
15 echo "1 1 text" >expect &&
16 git apply --numstat - <patch >actual &&
17 test_cmp expect actual
20 test_expect_success 'git apply --numstat - < patch patch' '
21 for i in 1 2; do echo "1 1 text"; done >expect &&
22 git apply --numstat - < patch patch >actual &&
23 test_cmp expect actual
26 test_done