 gitty   = require "gitty"
 
 GitHubApi = require "github"
-ghRepos   = new GitHubApi({version: "3.0.0"}).repos
+githubApi = new GitHubApi({version: "3.0.0"})
 
 
 redis = require "redis"

      callback undefined, repo             

getTopics = (community, callback) ->
  ghRepos.getBranches {user: "communities", repo: community}, (err, branches) ->
    if err
      callback err
      return



getCommunity = (community, callback) ->
  ghRepos().get {user: "communities", repo: community}, (err, repo) ->
    if err
      callback err
      return
