Skip to content

Commit 5a5d6e1

Browse files
astrohartshiftkey
authored andcommitted
Updated ApiUrls.Reference to remove 'refs' from referenceName parameter's value
1 parent eee5789 commit 5a5d6e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Octokit/Helpers/ApiUrls.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3185,7 +3185,8 @@ public static Uri Reference(long repositoryId)
31853185
/// <returns>The <see cref="Uri"/> for the specified reference.</returns>
31863186
public static Uri Reference(long repositoryId, string referenceName)
31873187
{
3188-
return "repositories/{0}/git/refs/{1}".FormatUri(repositoryId, referenceName);
3188+
return "repositories/{0}/git/refs/{1}".FormatUri(repositoryId,
3189+
referenceName.Replace("refs/", string.Empty));
31893190
}
31903191

31913192
/// <summary>

0 commit comments

Comments
 (0)