diff --git a/SourceLink.Create.GitHub/SourceLink.Create.GitHub.csproj b/SourceLink.Create.GitHub/SourceLink.Create.GitHub.csproj
index 28e582b..53e2f7b 100644
--- a/SourceLink.Create.GitHub/SourceLink.Create.GitHub.csproj
+++ b/SourceLink.Create.GitHub/SourceLink.Create.GitHub.csproj
@@ -18,7 +18,7 @@
-
+
diff --git a/dotnet-sourcelink-git/Program.cs b/dotnet-sourcelink-git/Program.cs
index 2268f42..67853e5 100644
--- a/dotnet-sourcelink-git/Program.cs
+++ b/dotnet-sourcelink-git/Program.cs
@@ -173,6 +173,12 @@ public static void Create(CommandLineApplication command)
{
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
+ filesNotInGit.Add(sf);
+ }
else
{
sf.GitHash = index.Id.Sha;
diff --git a/dotnet-sourcelink-git/dotnet-sourcelink-git.csproj b/dotnet-sourcelink-git/dotnet-sourcelink-git.csproj
index 4f27ea7..41ee1f4 100644
--- a/dotnet-sourcelink-git/dotnet-sourcelink-git.csproj
+++ b/dotnet-sourcelink-git/dotnet-sourcelink-git.csproj
@@ -25,5 +25,5 @@
-
+
\ No newline at end of file
diff --git a/dotnet-sourcelink/Program.cs b/dotnet-sourcelink/Program.cs
index c1b4e8c..0393b63 100644
--- a/dotnet-sourcelink/Program.cs
+++ b/dotnet-sourcelink/Program.cs
@@ -361,10 +361,12 @@ static IEnumerable GetDocumentsWithUrlHashes(string pdb)
if(doc.Url != null)
{
HashUrl(hc, doc);
- if (doc.Error != null) continue;
- if (!doc.Hash.CollectionEquals(doc.UrlHash))
+ if (doc.Error == null)
{
- doc.Error = "url hash does not match: " + doc.Hash.ToHex();
+ if (!doc.Hash.CollectionEquals(doc.UrlHash))
+ {
+ doc.Error = "url hash does not match: " + doc.Hash.ToHex();
+ }
}
}
yield return doc;
diff --git a/dotnet-sourcelink/dotnet-sourcelink.csproj b/dotnet-sourcelink/dotnet-sourcelink.csproj
index 1f969ee..9f47fa2 100644
--- a/dotnet-sourcelink/dotnet-sourcelink.csproj
+++ b/dotnet-sourcelink/dotnet-sourcelink.csproj
@@ -21,5 +21,5 @@
-
+
\ No newline at end of file