Permalink
Browse files

Get list of users from which we can pull their fork from network_memb…

…ers helper (the previous helper's API call was broken)

KNOWN BUG: This does not return the root repository user
  • Loading branch information...
1 parent 0fe8734 commit 0cee52945548c85d670ef4ad83dededc5eae9d75 @drnic drnic committed Nov 5, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/commands/commands.rb
  2. +2 −2 lib/commands/helpers.rb
@@ -103,7 +103,7 @@
die "Specify a user to pull from" if user.nil?
user, branch = user.split("/", 2) if branch.nil?
- if !helper.network_members.include?(user)
+ if !helper.network_members(user, {}).include?(user)
git_exec "#{helper.argv.join(' ')}".strip
return
end
@@ -320,8 +320,8 @@
GitHub.original_args
end
-helper :network_members do
- get_network_members(owner, {}).map {|member| member['owner']['login'] }
+helper :network_members do |user, options|
+ get_network_data(user, options)['users'].map { |u| u['name'] }
end

0 comments on commit 0cee529

Please sign in to comment.