Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update to new GitHub API

  • Loading branch information...
commit 8d01e336a91acf442d50089ca61831ad2c2875a9 1 parent bdedf9d
@lsegal authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/scm_checkout.rb
View
4 lib/scm_checkout.rb
@@ -134,8 +134,8 @@ def clear_source_files
def fork?
return @is_fork unless @is_fork.nil?
if !File.directory?(File.join(settings.repos, name))
- json = JSON.parse(open("http://github.com/api/v1/json/#{username}").read)
- proj_json = json["user"]["repositories"].find {|s| s["name"] == project }
+ json = JSON.parse(open("https://api.github.com/users/#{username}/repos").read)
+ proj_json = json.find {|s| s["name"] == project }
@is_fork = proj_json["fork"] if proj_json
else
@is_fork = true
Please sign in to comment.
Something went wrong with that request. Please try again.