Skip to content

Instantly share code, notes, and snippets.

@kmiyake
Created February 2, 2013 08:48
Show Gist options
  • Save kmiyake/4696633 to your computer and use it in GitHub Desktop.
Save kmiyake/4696633 to your computer and use it in GitHub Desktop.
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