@@ -31,7 +31,10 @@ test_expect_success \
31
31
mkdir bar &&
32
32
echo "zzz" >bar/zzz &&
33
33
echo "#!/bin/sh" >exec.sh &&
34
- chmod +x exec.sh &&
34
+ {
35
+ test_have_prereq !POSIXPERM ||
36
+ chmod +x exec.sh
37
+ } &&
35
38
svn_cmd import -m "import for git svn" . "$svnrepo" >/dev/null
36
39
) &&
37
40
rm -rf import &&
@@ -117,7 +120,7 @@ test_expect_success "$name" '
117
120
118
121
119
122
name=' remove executable bit from a file'
120
- test_expect_success " $name " '
123
+ test_expect_success ! MINGW " $name " '
121
124
rm -f "$GIT_DIR"/index &&
122
125
git checkout -f -b mybranch5 ${remotes_git_svn} &&
123
126
chmod -x exec.sh &&
@@ -130,7 +133,7 @@ test_expect_success "$name" '
130
133
131
134
132
135
name=' add executable bit back file'
133
- test_expect_success " $name " '
136
+ test_expect_success ! MINGW " $name " '
134
137
chmod +x exec.sh &&
135
138
git update-index exec.sh &&
136
139
git commit -m "$name" &&
@@ -141,7 +144,7 @@ test_expect_success "$name" '
141
144
142
145
143
146
name=' executable file becomes a symlink to file'
144
- test_expect_success " $name " '
147
+ test_expect_success ! MINGW " $name " '
145
148
rm exec.sh &&
146
149
ln -s file exec.sh &&
147
150
git update-index exec.sh &&
@@ -153,8 +156,11 @@ test_expect_success "$name" '
153
156
154
157
name=' new symlink is added to a file that was also just made executable'
155
158
156
- test_expect_success " $name " '
157
- chmod +x file &&
159
+ test_expect_success ! MINGW " $name " '
160
+ {
161
+ test_have_prereq !POSIXPERM ||
162
+ chmod +x file
163
+ } &&
158
164
ln -s file exec-2.sh &&
159
165
git update-index --add file exec-2.sh &&
160
166
git commit -m "$name" &&
@@ -165,7 +171,7 @@ test_expect_success "$name" '
165
171
test -h "$SVN_TREE"/exec-2.sh'
166
172
167
173
name=' modify a symlink to become a file'
168
- test_expect_success " $name " '
174
+ test_expect_success ! MINGW " $name " '
169
175
echo git help >help &&
170
176
rm exec-2.sh &&
171
177
cp help exec-2.sh &&
@@ -181,7 +187,7 @@ test_expect_success "$name" '
181
187
name=" commit with UTF-8 message: locale: $GIT_SVN_LC_ALL "
182
188
LC_ALL=" $GIT_SVN_LC_ALL "
183
189
export LC_ALL
184
- test_expect_success UTF8 " $name " "
190
+ test_expect_success ! MINGW, UTF8 " $name " "
185
191
echo '# hello' >> exec-2.sh &&
186
192
git update-index exec-2.sh &&
187
193
git commit -m 'éï∏' &&
@@ -214,7 +220,7 @@ tree d667270a1f7b109f5eb3aaea21ede14b56bfdd6e
214
220
tree 8f51f74cf0163afc9ad68a4b1537288c4558b5a4
215
221
EOF
216
222
217
- test_expect_success " $name " " test_cmp a expected"
223
+ test_expect_success ! MINGW " $name " " test_cmp a expected"
218
224
219
225
test_expect_success ' exit if remote refs are ambigious' "
220
226
git config --add svn-remote.svn.fetch \
0 commit comments