Skip to content

Commit d4d4f8d

Browse files
mhaggergitster
authored andcommitted
git-check-attr: Demonstrate problems with unnormalized paths
Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fa92f32 commit d4d4f8d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t0003-attributes.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ test_expect_success 'attribute test' '
9393
9494
'
9595

96+
test_expect_failure 'unnormalized paths' '
97+
98+
attr_check ./f f &&
99+
attr_check ./a/g a/g &&
100+
attr_check a/./g a/g &&
101+
attr_check a/c/../b/g a/b/g
102+
103+
'
104+
96105
test_expect_success 'core.attributesfile' '
97106
attr_check global unspecified &&
98107
git config core.attributesfile "$HOME/global-gitattributes" &&

0 commit comments

Comments
 (0)