]> git.ipfire.org Git - thirdparty/git.git/blame - t/t4115-apply-symlink.sh
path.c: don't call the match function without value in trie_find()
[thirdparty/git.git] / t / t4115-apply-symlink.sh
CommitLineData
2c71810b
JH
1#!/bin/sh
2#
3# Copyright (c) 2005 Junio C Hamano
4#
5
5be60078 6test_description='git apply symlinks and partial files
2c71810b
JH
7
8'
9
10. ./test-lib.sh
11
889c6f0e 12test_expect_success setup '
2c71810b 13
889c6f0e 14 test_ln_s_add path1/path2/path3/path4/path5 link1 &&
2c71810b
JH
15 git commit -m initial &&
16
17 git branch side &&
18
19 rm -f link? &&
20
889c6f0e 21 test_ln_s_add htap6 link1 &&
2c71810b
JH
22 git commit -m second &&
23
24 git diff-tree -p HEAD^ HEAD >patch &&
25 git apply --stat --summary patch
26
27'
28
41be8ea2 29test_expect_success SYMLINKS 'apply symlink patch' '
2c71810b
JH
30
31 git checkout side &&
32 git apply patch &&
33 git diff-files -p >patched &&
3af82863 34 test_cmp patch patched
2c71810b
JH
35
36'
37
889c6f0e 38test_expect_success 'apply --index symlink patch' '
2c71810b
JH
39
40 git checkout -f side &&
41 git apply --index patch &&
42 git diff-index --cached -p HEAD >patched &&
3af82863 43 test_cmp patch patched
2c71810b
JH
44
45'
46
47test_done