Skip to content

Commit

Permalink
Merge pull request #42 from ctshryock/42-delete-repo
Browse files Browse the repository at this point in the history
Thanks for reporting this
  • Loading branch information
catsby committed Jul 16, 2011
2 parents 25b8520 + a5eb9a9 commit 68627c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octokit/client/repositories.rb
Expand Up @@ -52,7 +52,7 @@ def delete_repository(repo, options={})
alias :delete_repo :delete_repository

def delete_repository!(repo, options={})
delete_token = post("/api/v2/json/repos/delete/#{Repository.new(repo)}", options)
delete_token = delete_repository(repo, options)
post("/api/v2/json/repos/delete/#{Repository.new(repo)}", options.merge(:delete_token => delete_token))
end
alias :delete_repo! :delete_repository!
Expand Down

0 comments on commit 68627c1

Please sign in to comment.