From bac869923754a161cdb12dc15abda758c8b46136 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Mon, 13 Mar 2017 19:26:24 -0700 Subject: [PATCH] add debug print statments #167 --- dotnet-sourcelink-git/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotnet-sourcelink-git/Program.cs b/dotnet-sourcelink-git/Program.cs index 67853e5..ab2ae4e 100644 --- a/dotnet-sourcelink-git/Program.cs +++ b/dotnet-sourcelink-git/Program.cs @@ -164,6 +164,7 @@ public static void Create(CommandLineApplication command) sf.GitPath = GetGitPath(repoPath, sf.FilePath); if (sf.GitPath == null) { + Console.WriteLine("file not in git, repoPath: {0}, sf.FilePath: {1}", repoPath, sf.FilePath); filesNotInGit.Add(sf); } else @@ -171,12 +172,14 @@ public static void Create(CommandLineApplication command) var index = repo.Index[sf.GitPath]; if (index == null) { + Console.WriteLine("file not in git, repo.Index doesn't have {0}", sf.FilePath); filesNotInGit.Add(sf); } else if (index.Path != sf.GitPath) { // mysysgit sets core.ignorecase true by default // but most web sites like GitHub are case sensitive + Console.WriteLine("file not in git, case does not match {0}, {1}", index.Path, sf.FilePath); filesNotInGit.Add(sf); } else