From 1995fa3e7bcdb5d64c9cf8c4ea1de4eac7e7d3b7 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Tue, 10 Dec 2024 14:23:03 +0100 Subject: [PATCH] fix branch name in GitConfiguration --- src/Elastic.Markdown/IO/GitConfiguration.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Elastic.Markdown/IO/GitConfiguration.cs b/src/Elastic.Markdown/IO/GitConfiguration.cs index 3ad5611..be83875 100644 --- a/src/Elastic.Markdown/IO/GitConfiguration.cs +++ b/src/Elastic.Markdown/IO/GitConfiguration.cs @@ -37,6 +37,7 @@ public static GitConfiguration Create(IFileSystem fileSystem) { head = head.Replace("ref: ", string.Empty); gitRef = Read(".git/" + head); + branch = branch.Replace("ref: ", string.Empty); } else branch = "detached/head";