@@ -110,6 +110,10 @@ class GitRepositoryTests: XCTestCase {
110
110
111
111
/// Check hash validation.
112
112
func testGitRepositoryHash( ) throws {
113
+ try skipOnWindowsAsTestCurrentlyFails ( because: """
114
+ Test failed with: 0 [main] sh (9736) C: \\ Program Files \\ Git \\ usr \\ bin \\ sh.exe: *** fatal error - add_item ( " \\ ?? \\ C: \\ Program Files \\ Git " , " / " , ...) failed, errno 1
115
+ """ )
116
+
113
117
let validHash = " 0123456789012345678901234567890123456789 "
114
118
XCTAssertNotEqual ( GitRepository . Hash ( validHash) , nil )
115
119
@@ -187,6 +191,10 @@ class GitRepositoryTests: XCTestCase {
187
191
}
188
192
189
193
func testSubmoduleRead( ) throws {
194
+ try skipOnWindowsAsTestCurrentlyFails ( because: """
195
+ Test failed with: 0 [main] sh (9736) C: \\ Program Files \\ Git \\ usr \\ bin \\ sh.exe: *** fatal error - add_item ( " \\ ?? \\ C: \\ Program Files \\ Git " , " / " , ...) failed, errno 1
196
+ """ )
197
+
190
198
try testWithTemporaryDirectory { path in
191
199
let testRepoPath = path. appending ( " test-repo " )
192
200
try makeDirectories ( testRepoPath)
@@ -298,6 +306,10 @@ class GitRepositoryTests: XCTestCase {
298
306
299
307
/// Test the handling of local checkouts.
300
308
func testCheckouts( ) throws {
309
+ try skipOnWindowsAsTestCurrentlyFails ( because: """
310
+ Test failed with: 0 [main] sh (9736) C: \\ Program Files \\ Git \\ usr \\ bin \\ sh.exe: *** fatal error - add_item ( " \\ ?? \\ C: \\ Program Files \\ Git " , " / " , ...) failed, errno 1
311
+ """ )
312
+
301
313
try testWithTemporaryDirectory { path in
302
314
// Create a test repository.
303
315
let testRepoPath = path. appending ( " test-repo " )
@@ -344,6 +356,10 @@ class GitRepositoryTests: XCTestCase {
344
356
}
345
357
346
358
func testFetch( ) throws {
359
+ try skipOnWindowsAsTestCurrentlyFails ( because: """
360
+ Test failed with: 0 [main] sh (9736) C: \\ Program Files \\ Git \\ usr \\ bin \\ sh.exe: *** fatal error - add_item ( " \\ ?? \\ C: \\ Program Files \\ Git " , " / " , ...) failed, errno 1
361
+ """ )
362
+
347
363
try testWithTemporaryDirectory { path in
348
364
// Create a repo.
349
365
let testRepoPath = path. appending ( " test-repo " )
@@ -383,6 +399,10 @@ class GitRepositoryTests: XCTestCase {
383
399
}
384
400
385
401
func testHasUnpushedCommits( ) throws {
402
+ try skipOnWindowsAsTestCurrentlyFails ( because: """
403
+ Test failed with: 0 [main] sh (9736) C: \\ Program Files \\ Git \\ usr \\ bin \\ sh.exe: *** fatal error - add_item ( " \\ ?? \\ C: \\ Program Files \\ Git " , " / " , ...) failed, errno 1
404
+ """ )
405
+
386
406
try testWithTemporaryDirectory { path in
387
407
// Create a repo.
388
408
let testRepoPath = path. appending ( " test-repo " )
@@ -419,6 +439,10 @@ class GitRepositoryTests: XCTestCase {
419
439
}
420
440
421
441
func testSetRemote( ) throws {
442
+ try skipOnWindowsAsTestCurrentlyFails ( because: """
443
+ Test failed with: 0 [main] sh (9736) C: \\ Program Files \\ Git \\ usr \\ bin \\ sh.exe: *** fatal error - add_item ( " \\ ?? \\ C: \\ Program Files \\ Git " , " / " , ...) failed, errno 1
444
+ """ )
445
+
422
446
try testWithTemporaryDirectory { path in
423
447
// Create a repo.
424
448
let testRepoPath = path. appending ( " test-repo " )
@@ -531,6 +555,10 @@ class GitRepositoryTests: XCTestCase {
531
555
}
532
556
533
557
func testCheckoutRevision( ) throws {
558
+ try skipOnWindowsAsTestCurrentlyFails ( because: """
559
+ Test failed with: 0 [main] sh (9736) C: \\ Program Files \\ Git \\ usr \\ bin \\ sh.exe: *** fatal error - add_item ( " \\ ?? \\ C: \\ Program Files \\ Git " , " / " , ...) failed, errno 1
560
+ """ )
561
+
534
562
try testWithTemporaryDirectory { path in
535
563
// Create a repo.
536
564
let testRepoPath = path. appending ( " test-repo " )
@@ -733,6 +761,10 @@ class GitRepositoryTests: XCTestCase {
733
761
}
734
762
735
763
func testMissingDefaultBranch( ) throws {
764
+ try skipOnWindowsAsTestCurrentlyFails ( because: """
765
+ Test failed with: 0 [main] sh (9736) C: \\ Program Files \\ Git \\ usr \\ bin \\ sh.exe: *** fatal error - add_item ( " \\ ?? \\ C: \\ Program Files \\ Git " , " / " , ...) failed, errno 1
766
+ """ )
767
+
736
768
try testWithTemporaryDirectory { path in
737
769
// Create a repository.
738
770
let testRepoPath = path. appending ( " test-repo " )
0 commit comments