Created
February 2, 2013 08:48
-
-
Save kmiyake/4696633 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/git_lib.rb b/lib/git_lib.rb | |
| index f3e3d1b..892103e 100644 | |
| --- a/lib/git_lib.rb | |
| +++ b/lib/git_lib.rb | |
| @@ -1,9 +1,10 @@ | |
| module GitLib | |
| def self.get_all_repositories(github) | |
| repositories = [] | |
| - github.repos.list(:per_page => 100).each_page do |page| | |
| - repositories += page | |
| - end | |
| + repositories = github.repos.list(:per_page => 100) | |
| + # github.repos.list(:per_page => 100).each_page do |page| | |
| + # repositories += page | |
| + # end | |
| unless repositories.blank? | |
| repositories.each do |repo| | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment