User who has never run `hub` will have commands fail when it prompts for auth
Closed this issue · 0 comments
jaymzh commented
sj sclone org/repo
Cloning repo...
Traceback (most recent call last):
6: from /usr/local/bin/sj:39:in `<main>'
5: from /usr/local/bin/sj:39:in `load'
4: from /opt/sugarjar/embedded/lib/ruby/gems/2.7.0/gems/sugarjar-0.0.5/bin/sj:231:in `<top (required)>'
3: from /opt/sugarjar/embedded/lib/ruby/gems/2.7.0/gems/sugarjar-0.0.5/lib/sugarjar/commands.rb:125:in `smartclone'
2: from /opt/sugarjar/embedded/lib/ruby/gems/2.7.0/gems/sugarjar-0.0.5/lib/sugarjar/util.rb:36:in `hub'
1: from /opt/sugarjar/embedded/lib/ruby/gems/2.7.0/gems/mixlib-shellout-3.0.9/lib/mixlib/shellout.rb:287:in `error!'
/opt/sugarjar/embedded/lib/ruby/gems/2.7.0/gems/mixlib-shellout-3.0.9/lib/mixlib/shellout.rb:300:in `invalid!': Expected process to exit with [0], but received '1' (Mixlib::ShellOut::ShellCommandFailed)
---- Begin output of ["/snap/bin/hub", "clone", "org/repo", "repo"] ----
STDOUT: github.com username: github.com password for (never stored):
STDERR: Must authenticate to access this API.
---- End output of ["/snap/bin/hub", "clone", "org/repo" "repo"] ----
Ran ["/snap/bin/hub", "clone", "org/repo", "repo"] returned 1