Skip to content

Commit

Permalink
fix: wrong git path on windows (#9399)
Browse files Browse the repository at this point in the history
* fix: wong git path on windows

* test(snapshot): update snapshots 0518144 for windows-latest

---------

Co-authored-by: yufeih <[email protected]>
  • Loading branch information
yufeih and yufeih committed Nov 13, 2023
1 parent aacfade commit 309d6b5
Show file tree
Hide file tree
Showing 141 changed files with 769 additions and 769 deletions.
2 changes: 1 addition & 1 deletion src/Docfx.Common/Git/GitUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ record Repo(string path, string url, string branch);
{
Repo = repo.url,
Branch = repo.branch,
Path = Path.GetRelativePath(repo.path, filePath),
Path = Path.GetRelativePath(repo.path, filePath).Replace('\\', '/'),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand All @@ -179,7 +179,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ConstantInterpolatedStrings_S1.md&value=---%0Auid%3A%20CSharp10.ConstantInterpolatedStrings.S1%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L23",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L23",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -295,7 +295,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand All @@ -313,7 +313,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ConstantInterpolatedStrings_S2.md&value=---%0Auid%3A%20CSharp10.ConstantInterpolatedStrings.S2%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L24",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L24",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -429,7 +429,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand All @@ -447,7 +447,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ConstantInterpolatedStrings_S3.md&value=---%0Auid%3A%20CSharp10.ConstantInterpolatedStrings.S3%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L25",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L25",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -497,7 +497,7 @@
"type": "class",
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -1084,7 +1084,7 @@
},
"yamlmime": "ManagedReference",
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ConstantInterpolatedStrings.md&value=---%0Auid%3A%20CSharp10.ConstantInterpolatedStrings%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L21",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L21",
"summary": "",
"remarks": "",
"conceptual": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -178,7 +178,7 @@
"summary": "<p sourcefile=\"api/CSharp10.Issue7737.yml\" sourcestartlinenumber=\"1\"><xref href=\"System.Exception\" data-throw-if-not-resolved=\"false\"></xref></p>\n",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_Issue7737_Foo.md&value=---%0Auid%3A%20CSharp10.Issue7737.Foo%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L33",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L33",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -227,7 +227,7 @@
"type": "class",
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -814,7 +814,7 @@
},
"yamlmime": "ManagedReference",
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_Issue7737.md&value=---%0Auid%3A%20CSharp10.Issue7737%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L28",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L28",
"summary": "",
"remarks": "",
"conceptual": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -177,7 +177,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ParameterlessStructConstructors__ctor.md&value=---%0Auid%3A%20CSharp10.ParameterlessStructConstructors.%23ctor%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L15",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L15",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -300,7 +300,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand All @@ -318,7 +318,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ParameterlessStructConstructors_X.md&value=---%0Auid%3A%20CSharp10.ParameterlessStructConstructors.X%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L11",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L11",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -442,7 +442,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -504,7 +504,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ParameterlessStructConstructors_Description.md&value=---%0Auid%3A%20CSharp10.ParameterlessStructConstructors.Description%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L13",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L13",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -621,7 +621,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -683,7 +683,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ParameterlessStructConstructors_Y.md&value=---%0Auid%3A%20CSharp10.ParameterlessStructConstructors.Y%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L12",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L12",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -733,7 +733,7 @@
"type": "struct",
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -1219,7 +1219,7 @@
},
"yamlmime": "ManagedReference",
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ParameterlessStructConstructors.md&value=---%0Auid%3A%20CSharp10.ParameterlessStructConstructors%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L9",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L9",
"summary": "",
"remarks": "",
"conceptual": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -317,7 +317,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ReadOnlyRecordStruct__ctor_System_Double_System_Double_System_Double_.md&value=---%0Auid%3A%20CSharp10.ReadOnlyRecordStruct.%23ctor(System.Double%2CSystem.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L3",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L3",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -441,7 +441,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -503,7 +503,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ReadOnlyRecordStruct_X.md&value=---%0Auid%3A%20CSharp10.ReadOnlyRecordStruct.X%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L3",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L3",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -620,7 +620,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -682,7 +682,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ReadOnlyRecordStruct_Y.md&value=---%0Auid%3A%20CSharp10.ReadOnlyRecordStruct.Y%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L3",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L3",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -799,7 +799,7 @@
},
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -861,7 +861,7 @@
"summary": "",
"platform": null,
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ReadOnlyRecordStruct_Z.md&value=---%0Auid%3A%20CSharp10.ReadOnlyRecordStruct.Z%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L3",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L3",
"remarks": "",
"conceptual": "",
"implements": "",
Expand Down Expand Up @@ -911,7 +911,7 @@
"type": "struct",
"source": {
"remote": {
"path": "samples\\csharp\\src\\CSharp10.cs",
"path": "samples/csharp/src/CSharp10.cs",
"branch": "main",
"repo": "https://github.com/dotnet/docfx"
},
Expand Down Expand Up @@ -1443,7 +1443,7 @@
},
"yamlmime": "ManagedReference",
"docurl": "https://github.com/dotnet/docfx/new/main/apiSpec/new?filename=CSharp10_ReadOnlyRecordStruct.md&value=---%0Auid%3A%20CSharp10.ReadOnlyRecordStruct%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples\\csharp\\src\\CSharp10.cs/#L3",
"sourceurl": "https://github.com/dotnet/docfx/blob/main/samples/csharp/src/CSharp10.cs/#L3",
"summary": "",
"remarks": "",
"conceptual": "",
Expand Down
Loading

0 comments on commit 309d6b5

Please sign in to comment.