From 9238e1dc41d6069f5950802d7fbcd27afbc7fa67 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Mon, 24 Feb 2020 18:45:20 -0400 Subject: [PATCH] just making a normal commit, nbd --- Octokit/Helpers/ApiUrls.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Octokit/Helpers/ApiUrls.cs b/Octokit/Helpers/ApiUrls.cs index 48cf5db7e1..77d08dc806 100644 --- a/Octokit/Helpers/ApiUrls.cs +++ b/Octokit/Helpers/ApiUrls.cs @@ -3185,7 +3185,8 @@ public static Uri Reference(long repositoryId) /// The for the specified reference. public static Uri Reference(long repositoryId, string referenceName) { - return "repositories/{0}/git/refs/{1}".FormatUri(repositoryId, referenceName); + return "repositories/{0}/git/refs/{1}".FormatUri(repositoryId, + referenceName.Replace("refs/", string.Empty)); } ///