@@ -62,8 +62,19 @@ static int VerifyArgumentsAndRun()
62
62
HelpWriter . Write ( ) ;
63
63
return 0 ;
64
64
}
65
+ if ( arguments . Diag )
66
+ {
67
+ arguments . NoCache = true ;
68
+ arguments . Output = OutputType . BuildServer ;
69
+ }
65
70
66
71
ConfigureLogging ( arguments ) ;
72
+
73
+ if ( arguments . Diag )
74
+ {
75
+ Logger . WriteInfo ( "Dumping commit graph: " ) ;
76
+ GitTools . LibGitExtensions . DumpGraph ( arguments . TargetPath , Logger . WriteInfo , 100 ) ;
77
+ }
67
78
if ( ! Directory . Exists ( arguments . TargetPath ) )
68
79
{
69
80
Logger . WriteWarning ( string . Format ( "The working directory '{0}' does not exist." , arguments . TargetPath ) ) ;
@@ -124,7 +135,7 @@ static int VerifyArgumentsAndRun()
124
135
return 0 ;
125
136
}
126
137
127
- private static void VerifyConfiguration ( Arguments arguments , IFileSystem fileSystem )
138
+ static void VerifyConfiguration ( Arguments arguments , IFileSystem fileSystem )
128
139
{
129
140
var gitPreparer = new GitPreparer ( arguments . TargetUrl , arguments . DynamicRepositoryLocation , arguments . Authentication , arguments . NoFetch , arguments . TargetPath ) ;
130
141
ConfigurationProvider . Verify ( gitPreparer , fileSystem ) ;
@@ -179,7 +190,7 @@ static void ConfigureLogging(Arguments arguments)
179
190
180
191
static void WriteLogEntry ( Arguments arguments , string s )
181
192
{
182
- var contents = string . Format ( "{0}\t \t {1}\r \n " , DateTime . Now . ToString ( "yyyy-MM-dd HH:mm:ss" ) , s ) ;
193
+ var contents = string . Format ( "{0:yyyy-MM-dd HH:mm:ss }\t \t {1}\r \n " , DateTime . Now , s ) ;
183
194
File . AppendAllText ( arguments . LogFilePath , contents ) ;
184
195
}
185
196
0 commit comments