Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix create-reference #82

Closed
wants to merge 1 commit into from

2 participants

@ForbesLindesay

The :ref should be added to the end of the path, not placed in the body.

@piascikj

I think the api you are looking for is update ref. create-reference has the ref in the body, update is in the path.

http://developer.github.com/v3/git/refs/#create-a-reference

@ForbesLindesay

It seems I may have been a little confused. I note that the test for create-reference is still commented out though:

https://github.com/mikedeboer/node-github/blob/master/api/v3.0.0/gitdataTest.js#L168

@ForbesLindesay

Anyway, turns out it was update-reference I needed. Thanks for the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 20, 2013
  1. @ForbesLindesay

    Fix create-reference

    ForbesLindesay authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  api/v3.0.0/routes.json
View
2  api/v3.0.0/routes.json
@@ -504,7 +504,7 @@
},
"create-reference": {
- "url": "/repos/:user/:repo/git/refs",
+ "url": "/repos/:user/:repo/git/refs/:ref",
"method": "POST",
"params": {
"$user": null,
Something went wrong with that request. Please try again.