File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ static void Main(string[] args)
4141 }
4242 }
4343
44+ if ( string . IsNullOrEmpty ( workingDirectory ) )
45+ {
46+ workingDirectory = Directory . GetCurrentDirectory ( ) ;
47+ }
48+
4449 string logAndTempFileDirectory = logDirectory ?? string . Empty ;
4550 if ( string . IsNullOrEmpty ( logAndTempFileDirectory ) )
4651 {
@@ -59,6 +64,7 @@ static void Main(string[] args)
5964 {
6065 logWriter . WriteLine ( new string ( '=' , 50 ) ) ;
6166 logWriter . WriteLine ( $ "GitContentSearch started at { DateTime . Now : yyyy-MM-dd HH:mm:ss} ") ;
67+ logWriter . WriteLine ( $ "Working Directory (Git Repo): { workingDirectory ?? "Not specified, using current directory" } ") ;
6268 logWriter . WriteLine ( $ "Logs and temporary files will be created in: { logAndTempFileDirectory } ") ;
6369 logWriter . WriteLine ( new string ( '=' , 50 ) ) ;
6470
You can’t perform that action at this time.
0 commit comments