Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

Commit

Permalink
Merge pull request #109 from sigmavirus24/master
Browse files Browse the repository at this point in the history
Git Refs fix
  • Loading branch information
pengwynn committed Jun 19, 2012
2 parents b39aa23 + 15b0216 commit 0cab294
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion content/v3/git/refs.md
Expand Up @@ -58,7 +58,7 @@ sha
### Response

<%= headers 201 %>
<%= json :refs %>
<%= json :ref %>

## Update a Reference

Expand Down
18 changes: 8 additions & 10 deletions lib/resources.rb
Expand Up @@ -718,17 +718,15 @@ def json(key)
}
}

REF = [
{
"ref" => "refs/heads/sc/featureA",
"url" => "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/sc/featureA",
"object" => {
"type" => "commit",
"sha" => "aa218f56b14c9653891f9e74264a383fa43fefbd",
"url" => "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd"
}
REF = {
"ref" => "refs/heads/sc/featureA",
"url" => "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/sc/featureA",
"object" => {
"type" => "commit",
"sha" => "aa218f56b14c9653891f9e74264a383fa43fefbd",
"url" => "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd"
}
]
}

REFS = [
{
Expand Down

0 comments on commit 0cab294

Please sign in to comment.