Skip to content

Commit

Permalink
Updated ApiUrls.Reference to remove 'refs' from referenceName paramet…
Browse files Browse the repository at this point in the history
…er's value
  • Loading branch information
astrohart authored and shiftkey committed Feb 24, 2020
1 parent eee5789 commit 5a5d6e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Octokit/Helpers/ApiUrls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3185,7 +3185,8 @@ public static Uri Reference(long repositoryId)
/// <returns>The <see cref="Uri"/> for the specified reference.</returns>
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));
}

/// <summary>
Expand Down

0 comments on commit 5a5d6e1

Please sign in to comment.