Skip to content

Commit

Permalink
Merge pull request #1172 from GitTools/pr/dynamic-repositories-fix
Browse files Browse the repository at this point in the history
Skip initial verification in case of dynamic repositories
  • Loading branch information
GeertvanHorrik authored Feb 26, 2017
2 parents 7201c7e + 012fb42 commit cc28b2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/GitVersionCore/Configuration/ConfigurationProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ public static string GetEffectiveConfigAsString(string workingDirectory, IFileSy

public static void Verify(GitPreparer gitPreparer, IFileSystem fileSystem)
{
if (!string.IsNullOrWhiteSpace(gitPreparer.TargetUrl))
{
// Assuming this is a dynamic repository. At this stage it's unsure whether we have
// any .git info so we need to skip verification
return;
}

var workingDirectory = gitPreparer.WorkingDirectory;
var projectRootDirectory = gitPreparer.GetProjectRootDirectory();

Expand Down
5 changes: 5 additions & 0 deletions src/GitVersionCore/GitPreparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public GitPreparer(string targetUrl, string dynamicRepositoryLocation, Authentic
LogProvider.SetCurrentLogProvider(new LoggerWrapper());
}

public string TargetUrl
{
get { return targetUrl; }
}

public string WorkingDirectory
{
get { return targetPath; }
Expand Down

0 comments on commit cc28b2d

Please sign in to comment.