File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ attr_check () {
19
19
20
20
test_expect_success ' setup' '
21
21
22
- mkdir -p a/b/d a/c &&
22
+ mkdir -p a/b/d a/c b &&
23
23
(
24
24
echo "[attr]notest !test"
25
25
echo "f test=f"
@@ -102,6 +102,19 @@ test_expect_failure 'unnormalized paths' '
102
102
103
103
'
104
104
105
+ test_expect_failure ' relative paths' '
106
+
107
+ (cd a && attr_check ../f f) &&
108
+ (cd a && attr_check f f) &&
109
+ (cd a && attr_check i a/i) &&
110
+ (cd a && attr_check g a/g) &&
111
+ (cd a && attr_check b/g a/b/g) &&
112
+ (cd b && attr_check ../a/f f) &&
113
+ (cd b && attr_check ../a/g a/g) &&
114
+ (cd b && attr_check ../a/b/g a/b/g)
115
+
116
+ '
117
+
105
118
test_expect_success ' core.attributesfile' '
106
119
attr_check global unspecified &&
107
120
git config core.attributesfile "$HOME/global-gitattributes" &&
You can’t perform that action at this time.
0 commit comments