We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eee5789 commit 5a5d6e1Copy full SHA for 5a5d6e1
Octokit/Helpers/ApiUrls.cs
@@ -3185,7 +3185,8 @@ public static Uri Reference(long repositoryId)
3185
/// <returns>The <see cref="Uri"/> for the specified reference.</returns>
3186
public static Uri Reference(long repositoryId, string referenceName)
3187
{
3188
- return "repositories/{0}/git/refs/{1}".FormatUri(repositoryId, referenceName);
+ return "repositories/{0}/git/refs/{1}".FormatUri(repositoryId,
3189
+ referenceName.Replace("refs/", string.Empty));
3190
}
3191
3192
/// <summary>
0 commit comments