Skip to content

Commit cc28b2d

Browse files
Merge pull request #1172 from GitTools/pr/dynamic-repositories-fix
Skip initial verification in case of dynamic repositories
2 parents 7201c7e + 012fb42 commit cc28b2d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/GitVersionCore/Configuration/ConfigurationProvider.cs

+7
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,13 @@ public static string GetEffectiveConfigAsString(string workingDirectory, IFileSy
229229

230230
public static void Verify(GitPreparer gitPreparer, IFileSystem fileSystem)
231231
{
232+
if (!string.IsNullOrWhiteSpace(gitPreparer.TargetUrl))
233+
{
234+
// Assuming this is a dynamic repository. At this stage it's unsure whether we have
235+
// any .git info so we need to skip verification
236+
return;
237+
}
238+
232239
var workingDirectory = gitPreparer.WorkingDirectory;
233240
var projectRootDirectory = gitPreparer.GetProjectRootDirectory();
234241

src/GitVersionCore/GitPreparer.cs

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public GitPreparer(string targetUrl, string dynamicRepositoryLocation, Authentic
3434
LogProvider.SetCurrentLogProvider(new LoggerWrapper());
3535
}
3636

37+
public string TargetUrl
38+
{
39+
get { return targetUrl; }
40+
}
41+
3742
public string WorkingDirectory
3843
{
3944
get { return targetPath; }

0 commit comments

Comments
 (0)