@@ -16,7 +16,9 @@ public class FetchFixture : BaseFixture
16
16
[ InlineData ( "git://github.com/libgit2/TestGitRepository.git" ) ]
17
17
public void CanFetchIntoAnEmptyRepository ( string url )
18
18
{
19
- using ( var repo = InitIsolatedRepository ( ) )
19
+ string path = InitNewRepository ( ) ;
20
+
21
+ using ( var repo = new Repository ( path ) )
20
22
{
21
23
Remote remote = repo . Network . Remotes . Add ( remoteName , url ) ;
22
24
@@ -53,7 +55,9 @@ public void CanFetchIntoAnEmptyRepositoryWithCredentials()
53
55
InconclusiveIf ( ( ) => string . IsNullOrEmpty ( Constants . PrivateRepoUrl ) ,
54
56
"Populate Constants.PrivateRepo* to run this test" ) ;
55
57
56
- using ( var repo = InitIsolatedRepository ( ) )
58
+ string path = InitNewRepository ( ) ;
59
+
60
+ using ( var repo = new Repository ( path ) )
57
61
{
58
62
Remote remote = repo . Network . Remotes . Add ( remoteName , Constants . PrivateRepoUrl ) ;
59
63
@@ -71,7 +75,9 @@ public void CanFetchIntoAnEmptyRepositoryWithCredentials()
71
75
[ InlineData ( "git://github.com/libgit2/TestGitRepository.git" ) ]
72
76
public void CanFetchAllTagsIntoAnEmptyRepository ( string url )
73
77
{
74
- using ( var repo = InitIsolatedRepository ( ) )
78
+ string path = InitNewRepository ( ) ;
79
+
80
+ using ( var repo = new Repository ( path ) )
75
81
{
76
82
Remote remote = repo . Network . Remotes . Add ( remoteName , url ) ;
77
83
@@ -112,7 +118,9 @@ public void CanFetchAllTagsIntoAnEmptyRepository(string url)
112
118
[ InlineData ( "git://github.com/libgit2/TestGitRepository.git" , "master" , "first-merge" ) ]
113
119
public void CanFetchCustomRefSpecsIntoAnEmptyRepository ( string url , string localBranchName , string remoteBranchName )
114
120
{
115
- using ( var repo = InitIsolatedRepository ( ) )
121
+ string path = InitNewRepository ( ) ;
122
+
123
+ using ( var repo = new Repository ( path ) )
116
124
{
117
125
Remote remote = repo . Network . Remotes . Add ( remoteName , url ) ;
118
126
@@ -147,7 +155,9 @@ public void FetchRespectsConfiguredAutoTagSetting(TagFetchMode tagFetchMode, int
147
155
{
148
156
string url = "http://github.com/libgit2/TestGitRepository" ;
149
157
150
- using ( var repo = InitIsolatedRepository ( ) )
158
+ string path = InitNewRepository ( ) ;
159
+
160
+ using ( var repo = new Repository ( path ) )
151
161
{
152
162
Remote remote = repo . Network . Remotes . Add ( remoteName , url ) ;
153
163
Assert . NotNull ( remote ) ;
0 commit comments