Skip to content

Commit 335bf47

Browse files
Ruben MamoRuben Mamo
Ruben Mamo
authored and
Ruben Mamo
committed
Added additional logging to help with TravisCI debugging
1 parent c5ffaea commit 335bf47

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/GitVersionCore/ExecuteCore.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public VersionVariables ExecuteGitVersion(string targetUrl, string dynamicReposi
4343
// },
4444
// Directory = workingDirectory
4545
//});
46-
Logger.WriteInfo(string.Format("Project root is: " + projectRoot));
46+
Logger.WriteInfo(string.Format("Project root is: {0}", projectRoot));
47+
Logger.WriteInfo(string.Format("DotGit directory is: {0}", dotGitDirectory));
4748
if (string.IsNullOrEmpty(dotGitDirectory) || string.IsNullOrEmpty(projectRoot))
4849
{
4950
// TODO Link to wiki article

src/GitVersionCore/GitPreparer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ static void CloneRepository(string repositoryUrl, string gitDirectory, Authentic
165165
Checkout = false,
166166
CredentialsProvider = (url, usernameFromUrl, types) => credentials
167167
};
168-
Repository.Clone(repositoryUrl, gitDirectory, cloneOptions);
168+
var returnedPath = Repository.Clone(repositoryUrl, gitDirectory, cloneOptions);
169+
Logger.WriteInfo(string.Format("Returned path after repository clone: {0}", returnedPath));
169170
}
170171
catch (LibGit2SharpException ex)
171172
{

0 commit comments

Comments
 (0)