heroku / heroku-repo

Plugin for heroku CLI that can manipulate the repo
MIT License
686 stars 111 forks source link

Switch to api.request which supports 2fa #25

Closed gudmundur closed 10 years ago

gudmundur commented 10 years ago

The plugin is using the legacy heroku.get which is not fitted for prompting for a two-factor code when required. This change switches to the newer api.request method, which does support 2fa.

Note: Moved the repo_get_url call in clone before any fs side effects, as the 2fa code retries the method and causes double nesting of directories, app/.git/app/.git.

Fixes #24.

tt commented 10 years ago

:+1: