Commits

Seth Jackson committed 1361b47

Use the repo hash of the /user endpoint as it returns full repo info and the /user/repositories endpoint does not.

Comments (0)

Files changed (2)

lib/bitbucket-backup/backup.rb

         #     the repos.
         #
         def self.get_repo_list(username, password)
-            uri = URI.parse("https://api.bitbucket.org/1.0/user/repositories/")
+            uri = URI.parse("https://api.bitbucket.org/1.0/user/")
             
             http = Net::HTTP.new(uri.host, uri.port)
             
                 exit
             end
             
-            JSON.parse(response.body)
+            JSON.parse(response.body)["repositories"]
         end
     end
 end

lib/bitbucket-backup/version.rb

 module Bitbucket
     module Backup
-        VERSION = "0.2.1"
+        VERSION = "0.2.2"
     end
 end