No check for ~/.bitbucket file

Issue #2 resolved
Sebastian Stigler created an issue

If you use the script without a ~/.bitbucket file you can't create new repos: I called:

bitbucket create -u sstiger -c --scm git --protocol ssh test_uebung09

the program promted:

password: 

I typed my (correct) password and I got:

Request Error 401: unauthorized

As I created a .bitbucket file like this:

[auth]
username = sstigler
#password = <Your Password>

[options]
scm = git
protocol = ssh

and called

bitbucket create -c test_uebung09

I got

password: 

Repository successfully created.
[- git] sstigler/test_uebung09

Comments (5)

  1. Howard Mao repo owner

    I wasn't able to reproduce this bug. I think you just have your username misspelled in the command-line version (sstiger instead of sstigler).

  2. Sebastian Stigler reporter

    Yes, you are right with the misspelling of the username. You can close this issue.

  3. Sebastian Stigler reporter

    I've just seen, that with the list command there is an issue if you don't call the bitbucket list with the -u option. If you call

    bitbucket list
    

    you get ask for an password and then you get

    Request Error 401: unauthorized
    

    if you don't have a .bitbucket file.

  4. Howard Mao repo owner

    Hey, sorry it has taken me so long to get around to this issue. I have made changes so that it prompts for your username if it isn't set.

  5. Log in to comment