27
echo ignored-only-if-dir/ export-ignore >>.git/info/attributes &&
28
git add ignored-only-if-dir &&
29
30
+ mkdir -p ignored-without-slash &&
31
+ echo "ignored without slash" >ignored-without-slash/foo &&
32
+ git add ignored-without-slash/foo &&
33
+ echo "ignored-without-slash export-ignore" >>.git/info/attributes &&
34
+
35
+ mkdir -p wildcard-without-slash &&
36
+ echo "ignored without slash" >wildcard-without-slash/foo &&
37
+ git add wildcard-without-slash/foo &&
38
+ echo "wild*-without-slash export-ignore" >>.git/info/attributes &&
39
+
40
+ mkdir -p deep/and/slashless &&
41
+ echo "ignored without slash" >deep/and/slashless/foo &&
42
+ git add deep/and/slashless/foo &&
43
+ echo "deep/and/slashless export-ignore" >>.git/info/attributes &&
44
+
45
+ mkdir -p deep/with/wildcard &&
46
+ echo "ignored without slash" >deep/with/wildcard/foo &&
47
+ git add deep/with/wildcard/foo &&
48
+ echo "deep/*t*/wildcard export-ignore" >>.git/info/attributes &&
49
50
mkdir -p one-level-lower/two-levels-lower/ignored-only-if-dir &&
51
echo ignored by ignored dir >one-level-lower/two-levels-lower/ignored-only-if-dir/ignored-by-ignored-dir &&
68
test_expect_exists archive/not-ignored-dir/
69
test_expect_missing archive/ignored-only-if-dir/
70
test_expect_missing archive/ignored-ony-if-dir/ignored-by-ignored-dir
71
+test_expect_missing archive/ignored-without-slash/ &&
72
+test_expect_missing archive/ignored-without-slash/foo &&
73
+test_expect_missing archive/wildcard-without-slash/
74
+test_expect_missing archive/wildcard-without-slash/foo &&
75
+test_expect_missing archive/deep/and/slashless/ &&
76
+test_expect_missing archive/deep/and/slashless/foo &&
77
+test_expect_missing archive/deep/with/wildcard/ &&
78
+test_expect_missing archive/deep/with/wildcard/foo &&
79
test_expect_exists archive/one-level-lower/
80
test_expect_missing archive/one-level-lower/two-levels-lower/ignored-only-if-dir/
81
test_expect_missing archive/one-level-lower/two-levels-lower/ignored-ony-if-dir/ignored-by-ignored-dir