From c774f848ed5e3626a650e73964b4df8d3610f685 Mon Sep 17 00:00:00 2001 From: hrumhurum Date: Sun, 1 May 2022 23:30:29 +0300 Subject: [PATCH] Improved MDDocProcessor. --- .../Vcs/RepositoryService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Utilities/MDDocProcessor/Gapotchenko.FX.Utilities.MDDocProcessor/Vcs/RepositoryService.cs b/Source/Utilities/MDDocProcessor/Gapotchenko.FX.Utilities.MDDocProcessor/Vcs/RepositoryService.cs index 1d6982ec..0e68f64e 100644 --- a/Source/Utilities/MDDocProcessor/Gapotchenko.FX.Utilities.MDDocProcessor/Vcs/RepositoryService.cs +++ b/Source/Utilities/MDDocProcessor/Gapotchenko.FX.Utilities.MDDocProcessor/Vcs/RepositoryService.cs @@ -54,6 +54,10 @@ static string _GetOrigHeadCore() => if (j != -1) localPath = localPath[0..j]; + j = localPath.IndexOf('#'); + if (j != -1) + localPath = localPath[0..j]; + var rootUri = new Uri(RootPath); uri = rootUri.MakeRelativeUri(uri); uri = new Uri(Uri.UnescapeDataString(uri.OriginalString), UriKind.Relative);