@@ -298,7 +298,7 @@ setup_metasyntactic_repo() {
298
298
)
299
299
}
300
300
301
- test_expect_success ' --tag-rename' '
301
+ test_expect_success FUNNYNAMES ' --tag-rename' '
302
302
setup_metasyntactic_repo &&
303
303
(
304
304
git clone file://"$(pwd)"/metasyntactic tag_rename &&
@@ -342,7 +342,7 @@ test_expect_success 'tag of tag before relevant portion of history' '
342
342
)
343
343
'
344
344
345
- test_expect_success ' --subdirectory-filter' '
345
+ test_expect_success FUNNYNAMES ' --subdirectory-filter' '
346
346
setup_metasyntactic_repo &&
347
347
(
348
348
git clone file://"$(pwd)"/metasyntactic subdir_filter &&
@@ -361,7 +361,7 @@ test_expect_success '--subdirectory-filter' '
361
361
)
362
362
'
363
363
364
- test_expect_success ' --subdirectory-filter with trailing slash' '
364
+ test_expect_success FUNNYNAMES ' --subdirectory-filter with trailing slash' '
365
365
setup_metasyntactic_repo &&
366
366
(
367
367
git clone file://"$(pwd)"/metasyntactic subdir_filter_2 &&
@@ -380,7 +380,7 @@ test_expect_success '--subdirectory-filter with trailing slash' '
380
380
)
381
381
'
382
382
383
- test_expect_success ' --to-subdirectory-filter' '
383
+ test_expect_success FUNNYNAMES ' --to-subdirectory-filter' '
384
384
setup_metasyntactic_repo &&
385
385
(
386
386
git clone file://"$(pwd)"/metasyntactic to_subdir_filter &&
@@ -400,7 +400,7 @@ test_expect_success '--to-subdirectory-filter' '
400
400
)
401
401
'
402
402
403
- test_expect_success ' --use-base-name' '
403
+ test_expect_success FUNNYNAMES ' --use-base-name' '
404
404
setup_metasyntactic_repo &&
405
405
(
406
406
git clone file://"$(pwd)"/metasyntactic use_base_name &&
@@ -419,7 +419,7 @@ test_expect_success '--use-base-name' '
419
419
)
420
420
'
421
421
422
- test_expect_success ' refs/replace/ to skip a parent' '
422
+ test_expect_success FUNNYNAMES ' refs/replace/ to skip a parent' '
423
423
setup_metasyntactic_repo &&
424
424
(
425
425
git clone file://"$(pwd)"/metasyntactic replace_skip_ref &&
@@ -441,7 +441,7 @@ test_expect_success 'refs/replace/ to skip a parent' '
441
441
)
442
442
'
443
443
444
- test_expect_success ' refs/replace/ to add more initial history' '
444
+ test_expect_success FUNNYNAMES ' refs/replace/ to add more initial history' '
445
445
setup_metasyntactic_repo &&
446
446
(
447
447
git clone file://"$(pwd)"/metasyntactic replace_add_refs &&
@@ -476,7 +476,7 @@ test_expect_success 'refs/replace/ to add more initial history' '
476
476
)
477
477
'
478
478
479
- test_expect_success ' creation/deletion/updating of replace refs' '
479
+ test_expect_success FUNNYNAMES ' creation/deletion/updating of replace refs' '
480
480
setup_metasyntactic_repo &&
481
481
(
482
482
git clone file://"$(pwd)"/metasyntactic replace_handling &&
@@ -535,7 +535,7 @@ test_expect_success 'creation/deletion/updating of replace refs' '
535
535
)
536
536
'
537
537
538
- test_expect_success ' --debug' '
538
+ test_expect_success FUNNYNAMES ' --debug' '
539
539
setup_metasyntactic_repo &&
540
540
(
541
541
git clone file://"$(pwd)"/metasyntactic debug &&
@@ -558,7 +558,7 @@ test_expect_success '--debug' '
558
558
)
559
559
'
560
560
561
- test_expect_success ' --dry-run' '
561
+ test_expect_success FUNNYNAMES ' --dry-run' '
562
562
setup_metasyntactic_repo &&
563
563
(
564
564
git clone file://"$(pwd)"/metasyntactic dry_run &&
@@ -586,7 +586,7 @@ test_expect_success '--dry-run' '
586
586
)
587
587
'
588
588
589
- test_expect_success ' --dry-run --debug' '
589
+ test_expect_success FUNNYNAMES ' --dry-run --debug' '
590
590
setup_metasyntactic_repo &&
591
591
(
592
592
git clone file://"$(pwd)"/metasyntactic dry_run_debug &&
@@ -614,7 +614,7 @@ test_expect_success '--dry-run --debug' '
614
614
)
615
615
'
616
616
617
- test_expect_success ' --dry-run --stdin' '
617
+ test_expect_success FUNNYNAMES ' --dry-run --stdin' '
618
618
setup_metasyntactic_repo &&
619
619
(
620
620
git clone file://"$(pwd)"/metasyntactic dry_run_stdin &&
@@ -917,7 +917,8 @@ test_expect_success '--strip-blobs-with-ids' '
917
917
grep fake_submodule ../filenames &&
918
918
919
919
# Strip "a certain file" files
920
- git filter-repo --strip-blobs-with-ids <(echo deadbeefdeadbeefdeadbeefdeadbeefdeadbeef) &&
920
+ echo deadbeefdeadbeefdeadbeefdeadbeefdeadbeef >../input &&
921
+ git filter-repo --strip-blobs-with-ids ../input &&
921
922
922
923
git log --format=%n --name-only | sort | uniq >../filenames &&
923
924
test_line_count = 10 ../filenames &&
@@ -937,12 +938,12 @@ test_expect_success '--strip-blobs-with-ids' '
937
938
git filter-repo --strip-blobs-with-ids ../bad-ids --replace-text ../replace-rules &&
938
939
939
940
git log --format=%n --name-only | sort | uniq >../filenames &&
940
- test_line_count = 5 ../filenames &&
941
+ test_line_count = 6 ../filenames &&
941
942
! grep sequence/to ../filenames &&
942
943
! grep words/to ../filenames &&
943
944
! grep capricious ../filenames &&
944
945
! grep fickle ../filenames &&
945
- ! grep mercurial ../filenames
946
+ ! grep mercurial ../filenames &&
946
947
947
948
# Remove the temporary auxiliary files
948
949
rm ../bad-ids &&
@@ -1196,6 +1197,12 @@ test_expect_success 'startup sanity checks' '
1196
1197
1197
1198
test_expect_success ' other startup error cases and requests for help' '
1198
1199
(
1200
+ # prevent MSYS2 (Git for Windows) from converting the colon to
1201
+ # a semicolon when encountering parameters that look like
1202
+ # Unix-style, colon-separated path lists (such as `foo:.`)
1203
+ MSYS_NO_PATHCONV=1 &&
1204
+ export MSYS_NO_PATHCONV
1205
+
1199
1206
git init startup_errors &&
1200
1207
cd startup_errors &&
1201
1208
@@ -1232,10 +1239,12 @@ test_expect_success 'other startup error cases and requests for help' '
1232
1239
test_must_fail git filter-repo --path-rename foo:bar/ 2>err &&
1233
1240
test_i18ngrep "either ends with a slash then both must." err &&
1234
1241
1235
- test_must_fail git filter-repo --paths-from-file <(echo "foo==>bar/") 2>err &&
1242
+ echo "foo==>bar/" >input &&
1243
+ test_must_fail git filter-repo --paths-from-file input 2>err &&
1236
1244
test_i18ngrep "either ends with a slash then both must." err &&
1237
1245
1238
- test_must_fail git filter-repo --paths-from-file <(echo "glob:*.py==>newname") 2>err &&
1246
+ echo "glob:*.py==>newname" >input &&
1247
+ test_must_fail git filter-repo --paths-from-file input 2>err &&
1239
1248
test_i18ngrep "renaming globs makes no sense" err &&
1240
1249
1241
1250
test_must_fail git filter-repo --strip-blobs-bigger-than 3GiB 2>err &&
@@ -1282,8 +1291,9 @@ test_expect_success 'mailmap sanity checks' '
1282
1291
git clone file://"$(pwd)"/analyze_me mailmap_sanity_checks &&
1283
1292
cd mailmap_sanity_checks &&
1284
1293
1285
- test_must_fail git filter-repo --mailmap /fake/path 2>../err &&
1286
- test_i18ngrep "Cannot read /fake/path" ../err &&
1294
+ fake=$(pwd)/fake &&
1295
+ test_must_fail git filter-repo --mailmap "$fake"/path 2>../err &&
1296
+ test_i18ngrep "Cannot read $fake/path" ../err &&
1287
1297
1288
1298
echo "Total Bogus" >../whoopsies &&
1289
1299
test_must_fail git filter-repo --mailmap ../whoopsies 2>../err &&
@@ -1358,7 +1368,8 @@ test_expect_success '--refs and --replace-text' '
1358
1368
git clone file://"$(pwd)"/path_rename refs_and_replace_text &&
1359
1369
cd refs_and_replace_text &&
1360
1370
git rev-parse --short=10 HEAD~1 >myparent &&
1361
- git filter-repo --force --replace-text <(echo "10==>TEN") --refs $(cat myparent)..master &&
1371
+ echo "10==>TEN" >input &&
1372
+ git filter-repo --force --replace-text input --refs $(cat myparent)..master &&
1362
1373
cat <<-EOF >expect &&
1363
1374
TEN11
1364
1375
EOF
@@ -1565,7 +1576,7 @@ test_expect_success '--state-branch with expanding paths and refs' '
1565
1576
)
1566
1577
'
1567
1578
1568
- test_expect_success ' degenerate merge with non-matching filenames' '
1579
+ test_expect_success FUNNYNAMES ' degenerate merge with non-matching filenames' '
1569
1580
test_create_repo degenerate_merge_differing_filenames &&
1570
1581
(
1571
1582
cd degenerate_merge_differing_filenames &&
@@ -1629,7 +1640,8 @@ test_expect_success 'degenerate merge with typechange' '
1629
1640
git ls-files >actual &&
1630
1641
test_cmp expect actual &&
1631
1642
1632
- test_line_count = 2 <(git log --oneline HEAD)
1643
+ git log --oneline HEAD >input &&
1644
+ test_line_count = 2 input
1633
1645
)
1634
1646
'
1635
1647
@@ -1670,7 +1682,7 @@ test_expect_success 'tweaking just a tag' '
1670
1682
1671
1683
test_expect_success ' --version' '
1672
1684
git filter-repo --version >actual &&
1673
- git hash-object ../../git-filter-repo | colrm 13 >expect &&
1685
+ git hash-object ../../git-filter-repo | cut -c 1-12 >expect &&
1674
1686
test_cmp expect actual
1675
1687
'
1676
1688
0 commit comments