Skip to content

Instantly share code, notes, and snippets.

@unforced
Created March 7, 2013 17:12
Show Gist options
  • Select an option

  • Save unforced/5109789 to your computer and use it in GitHub Desktop.

Select an option

Save unforced/5109789 to your computer and use it in GitHub Desktop.
Crashes github_api
require 'github_api'
@user = "rubinius"
@repo = "rubinius"
@github = Github.new(oauth_token: "redacted")
begin
@github.repos.commits.get(@user, @repo, "ceb66b61264657898cd6608c7e9ed78072169664")
rescue Github::Error::NotFound
end
begin
@github.repos.commits.get(@user, @repo, "1754bd9b208e8d9207c226d1ffb3cee490856a78")
rescue Github::Error::NotFound
end
/home/aaron/.rvm/gems/ruby-2.0.0-rc2/gems/github_api-0.9.2/lib/github_api/api.rb:144: stack level too deep (SystemStackError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment