Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
Ivan Tse 9126d28e32 `fork` should fetch from the same "origin" Github URL. 2014-01-23 11:48:21 -05:00
Ivan Tse 179ef88ec7 Fork and set up remote in a non-blocking fashion
Forking through GitHub's API is asynchronous so there is really no way
of knowning when you can access git objects without polling.
Alternatively, we can establish the state of the fork with its remote
tracking branches and tags by fetching from the "origin" remote and then
changing the remote url to the fork.
2014-01-22 20:50:46 -05:00
Mislav Marohnić 0c86e6acef Lock down to GitHub API v3 for future compatibility
Every API request will now declare that it wants v3 by setting
"Accept: application/vnd.github.v3+json".

http://developer.github.com/v3/media/
2013-12-22 00:15:12 +01:00
Mislav Marohnić 8d50224e5b remove unnecessary endpoints in `fork` tests 2012-11-07 14:24:43 +01:00
Mislav Marohnić d907e8b5f6 simplify checking for existing fork
- performs a single API call instead of 3
 - simpler handling of parent repo data
 - less brittle implementation

Closes #257, references #146
2012-11-07 14:24:22 +01:00
Max Rydahl Andersen d3d7d55e67 have `fork` set up a remote even if own fork already exists 2012-11-07 14:20:11 +01:00
Ilya Bogdanovich b7cc84486f fix integration with GH Enterprise API
Enterprise installations don't have a separate subdomain for API
requests such as "api.github.com", but their API endpoints start with
"/api/v3" path.

Fixes #201
2012-07-16 09:14:27 +02:00
Mislav Marohnić d1e03eb475 rewrite `hub fork` tests as cukes running against a live server 2012-05-06 19:33:56 +02:00