Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
add debug print statments #167
Browse files Browse the repository at this point in the history
  • Loading branch information
ctaggart committed Mar 14, 2017
1 parent b7f32eb commit bac8699
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dotnet-sourcelink-git/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,22 @@ 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
{
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
Expand Down

0 comments on commit bac8699

Please sign in to comment.