You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@test 'deleting last file from a directory should add empty .gitignore with empty-dirs-parameter' {
218
+
svn mkdir dir-a
219
+
touch dir-a/file-a
220
+
svn add dir-a/file-a
221
+
svn commit -m 'add dir-a/file-a'
222
+
svn rm dir-a/file-a
223
+
svn commit -m 'delete dir-a/file-a'
224
+
225
+
cd"$TEST_TEMP_DIR"
226
+
svn2git "$SVN_REPO" --empty-dirs --rules <(echo "
227
+
create repository git-repo
228
+
end repository
229
+
230
+
match /
231
+
repository git-repo
232
+
branch master
233
+
end match
234
+
")
235
+
236
+
refute git -C git-repo show master:.gitignore
237
+
assert git -C git-repo show master:dir-a/.gitignore
238
+
assert_equal "$(git -C git-repo show master:dir-a/.gitignore)"''
239
+
}
240
+
241
+
@test 'deleting last file from a directory should add empty .gitignore with empty-dirs-parameter (nested)' {
242
+
svn mkdir project-a
243
+
cd project-a
244
+
svn mkdir dir-a
245
+
touch dir-a/file-a
246
+
svn add dir-a/file-a
247
+
svn commit -m 'add dir-a/file-a'
248
+
svn rm dir-a/file-a
249
+
svn commit -m 'delete dir-a/file-a'
250
+
251
+
cd"$TEST_TEMP_DIR"
252
+
svn2git "$SVN_REPO" --empty-dirs --rules <(echo "
253
+
create repository git-repo
254
+
end repository
255
+
256
+
match /project-a/
257
+
repository git-repo
258
+
branch master
259
+
end match
260
+
")
261
+
262
+
refute git -C git-repo show master:.gitignore
263
+
assert git -C git-repo show master:dir-a/.gitignore
264
+
assert_equal "$(git -C git-repo show master:dir-a/.gitignore)"''
265
+
}
266
+
267
+
@test 'deleting last file from a directory should not add empty .gitignore with empty-dirs-parameter and svn-ignore-parameter if there is an svn:ignore property' {
assert git -C git-repo show master:dir-a/.gitignore
290
+
assert_equal "$(git -C git-repo show master:dir-a/.gitignore)"'/ignore-a'
291
+
}
292
+
293
+
@test 'deleting last file from a directory should not add empty .gitignore with empty-dirs-parameter and svn-ignore-parameter if there is an svn:ignore property (nested)' {
assert git -C git-repo show master:dir-a/.gitignore
318
+
assert_equal "$(git -C git-repo show master:dir-a/.gitignore)"'/ignore-a'
319
+
}
320
+
321
+
@test 'deleting last directory from a directory should add empty .gitignore with empty-dirs-parameter' {
322
+
svn mkdir --parents dir-a/subdir-a
323
+
svn commit -m 'add dir-a/subdir-a'
324
+
svn rm dir-a/subdir-a
325
+
svn commit -m 'delete dir-a/subdir-a'
326
+
327
+
cd"$TEST_TEMP_DIR"
328
+
svn2git "$SVN_REPO" --empty-dirs --rules <(echo "
329
+
create repository git-repo
330
+
end repository
331
+
332
+
match /
333
+
repository git-repo
334
+
branch master
335
+
end match
336
+
")
337
+
338
+
refute git -C git-repo show master:.gitignore
339
+
assert git -C git-repo show master:dir-a/.gitignore
340
+
assert_equal "$(git -C git-repo show master:dir-a/.gitignore)"''
341
+
}
342
+
343
+
@test 'deleting last directory from a directory should add empty .gitignore with empty-dirs-parameter (nested)' {
344
+
svn mkdir project-a
345
+
cd project-a
346
+
svn mkdir --parents dir-a/subdir-a
347
+
svn commit -m 'add dir-a/subdir-a'
348
+
svn rm dir-a/subdir-a
349
+
svn commit -m 'delete dir-a/subdir-a'
350
+
351
+
cd"$TEST_TEMP_DIR"
352
+
svn2git "$SVN_REPO" --empty-dirs --rules <(echo "
353
+
create repository git-repo
354
+
end repository
355
+
356
+
match /project-a/
357
+
repository git-repo
358
+
branch master
359
+
end match
360
+
")
361
+
362
+
refute git -C git-repo show master:.gitignore
363
+
assert git -C git-repo show master:dir-a/.gitignore
364
+
assert_equal "$(git -C git-repo show master:dir-a/.gitignore)"''
365
+
}
366
+
367
+
@test 'deleting last directory from a directory should not add empty .gitignore with empty-dirs-parameter and svn-ignore-parameter if there is an svn:ignore property' {
assert git -C git-repo show master:dir-a/.gitignore
388
+
assert_equal "$(git -C git-repo show master:dir-a/.gitignore)"'/ignore-a'
389
+
}
390
+
391
+
@test 'deleting last directory from a directory should not add empty .gitignore with empty-dirs-parameter and svn-ignore-parameter if there is an svn:ignore property (nested)' {
0 commit comments