Skip to content

Commit 0cab294

Browse files
committed
Merge pull request github#109 from sigmavirus24/master
Git Refs fix
2 parents b39aa23 + 15b0216 commit 0cab294

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

content/v3/git/refs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ sha
5858
### Response
5959

6060
<%= headers 201 %>
61-
<%= json :refs %>
61+
<%= json :ref %>
6262

6363
## Update a Reference
6464

lib/resources.rb

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -718,17 +718,15 @@ def json(key)
718718
}
719719
}
720720

721-
REF = [
722-
{
723-
"ref" => "refs/heads/sc/featureA",
724-
"url" => "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/sc/featureA",
725-
"object" => {
726-
"type" => "commit",
727-
"sha" => "aa218f56b14c9653891f9e74264a383fa43fefbd",
728-
"url" => "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd"
729-
}
721+
REF = {
722+
"ref" => "refs/heads/sc/featureA",
723+
"url" => "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/sc/featureA",
724+
"object" => {
725+
"type" => "commit",
726+
"sha" => "aa218f56b14c9653891f9e74264a383fa43fefbd",
727+
"url" => "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd"
730728
}
731-
]
729+
}
732730

733731
REFS = [
734732
{

0 commit comments

Comments
 (0)