@@ -55,8 +55,8 @@ public void WorksCorrectlyWithRemoteRepository(string branchName, string expecte
55
55
arguments . TargetBranch = branchName ;
56
56
}
57
57
58
- var gitPreparer = new GitPreparer ( arguments . TargetUrl , arguments . DynamicRepositoryLocation , arguments . Authentication , arguments . TargetBranch , arguments . NoFetch , arguments . TargetPath , false ) ;
59
- gitPreparer . Initialise ( ) ;
58
+ var gitPreparer = new GitPreparer ( arguments . TargetUrl , arguments . DynamicRepositoryLocation , arguments . Authentication , arguments . TargetBranch , arguments . NoFetch , arguments . TargetPath ) ;
59
+ gitPreparer . Initialise ( false ) ;
60
60
dynamicRepositoryPath = gitPreparer . GetDotGitDirectory ( ) ;
61
61
62
62
gitPreparer . IsDynamicGitRepository . ShouldBe ( true ) ;
@@ -100,12 +100,12 @@ public void UpdatesExistingDynamicRepository()
100
100
TargetBranch = "master"
101
101
} ;
102
102
103
- var gitPreparer = new GitPreparer ( arguments . TargetUrl , arguments . DynamicRepositoryLocation , arguments . Authentication , arguments . TargetBranch , arguments . NoFetch , arguments . TargetPath , false ) ;
104
- gitPreparer . Initialise ( ) ;
103
+ var gitPreparer = new GitPreparer ( arguments . TargetUrl , arguments . DynamicRepositoryLocation , arguments . Authentication , arguments . TargetBranch , arguments . NoFetch , arguments . TargetPath ) ;
104
+ gitPreparer . Initialise ( false ) ;
105
105
dynamicRepositoryPath = gitPreparer . GetDotGitDirectory ( ) ;
106
106
107
107
var newCommit = mainRepositoryFixture . Repository . MakeACommit ( ) ;
108
- gitPreparer . Initialise ( ) ;
108
+ gitPreparer . Initialise ( false ) ;
109
109
110
110
using ( var repository = new Repository ( dynamicRepositoryPath ) )
111
111
{
@@ -147,8 +147,8 @@ public void PicksAnotherDirectoryNameWhenDynamicRepoFolderTaken()
147
147
TargetUrl = fixture . RepositoryPath
148
148
} ;
149
149
150
- var gitPreparer = new GitPreparer ( arguments . TargetUrl , arguments . DynamicRepositoryLocation , arguments . Authentication , arguments . TargetBranch , arguments . NoFetch , arguments . TargetPath , false ) ;
151
- gitPreparer . Initialise ( ) ;
150
+ var gitPreparer = new GitPreparer ( arguments . TargetUrl , arguments . DynamicRepositoryLocation , arguments . Authentication , arguments . TargetBranch , arguments . NoFetch , arguments . TargetPath ) ;
151
+ gitPreparer . Initialise ( false ) ;
152
152
153
153
gitPreparer . IsDynamicGitRepository . ShouldBe ( true ) ;
154
154
gitPreparer . DynamicGitRepositoryPath . ShouldBe ( expectedDynamicRepoLocation + "_1\\ .git" ) ;
@@ -174,7 +174,7 @@ public void WorksCorrectlyWithLocalRepository()
174
174
TargetPath = tempDir
175
175
} ;
176
176
177
- var gitPreparer = new GitPreparer ( arguments . TargetUrl , arguments . DynamicRepositoryLocation , arguments . Authentication , arguments . TargetBranch , arguments . NoFetch , arguments . TargetPath , false ) ;
177
+ var gitPreparer = new GitPreparer ( arguments . TargetUrl , arguments . DynamicRepositoryLocation , arguments . Authentication , arguments . TargetBranch , arguments . NoFetch , arguments . TargetPath ) ;
178
178
var dynamicRepositoryPath = gitPreparer . GetDotGitDirectory ( ) ;
179
179
180
180
dynamicRepositoryPath . ShouldBe ( null ) ;
@@ -184,8 +184,8 @@ public void WorksCorrectlyWithLocalRepository()
184
184
[ Test ]
185
185
public void UsesGitVersionConfigWhenCreatingDynamicRepository ( )
186
186
{
187
- string localRepoPath = PathHelper . GetTempPath ( ) ;
188
- string repoBasePath = Path . GetDirectoryName ( PathHelper . GetTempPath ( ) ) ;
187
+ var localRepoPath = PathHelper . GetTempPath ( ) ;
188
+ var repoBasePath = Path . GetDirectoryName ( PathHelper . GetTempPath ( ) ) ;
189
189
Directory . CreateDirectory ( localRepoPath ) ;
190
190
191
191
try
0 commit comments