Skip to content

Commit 044f94f

Browse files
committed
log workingDirectory
1 parent 9110afe commit 044f94f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

GitContentSearch/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)