maks / MGit

A Git client for Android.
https://manichord.com/projects/mgit.html
GNU General Public License v3.0
1.22k stars 166 forks source link

Pushing to bitbucket fails #569

Open superfury opened 3 years ago

superfury commented 3 years ago

It gives me an error: git-receive-pack not permitted

I'm quite sure I use the correct username&password it asks for. It worked properly until now.

maks commented 3 years ago

Its hard to say without further information but it does sound like you don't have permission to the remote repo you are trying to access. Could you confirm that you are using the correct username & passord by trying to access that repo via another git client?

superfury commented 3 years ago

OK. Trying to use the manual inputs like MGit on Smartgit for Windows gives the following: remote: Because you enabled two-step verification for your Atlassian account, you'll need to authenticate with an app password. Create an app password at https://bitbucket.org/account/admin/app-passwords So I now need to use a manual password that's not what I'm using to login with my login credentials within the browser just to use MGit with the repo.

superfury commented 3 years ago

Another issue with this is that MGit won't report this fact (giving the weird git-receive-pack not permitted message instead).

superfury commented 3 years ago

OK. Really weird. I need to use the username instead of the e-mailaddress (as I used previously) as the username and the created app password instead of the account password.

maks commented 3 years ago

Thank you for the extra information. Yes I think this maybe an issue with the error message that the underlying git library (JGit) that is used by MGit reports back. Otherwise I think this is more of a documentation issue that should go into a FAQ around app-specific passowrds/otkens that Bitbucket, Github and other services have moved to along with the move to using two-factor auth.

maks commented 3 years ago

Actually this is already in the FAQ but just needs to be updated to not be Github specific.