Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change git password #328

Closed
TheLastDestroyer opened this issue Aug 14, 2018 · 8 comments

Comments

Projects
None yet
2 participants
@TheLastDestroyer
Copy link

commented Aug 14, 2018

Just changed my github password but can’t for the life of me find where to change it in stash. Tried to follow the code backwards but have got nowhere.

I’m trying to clone a private github repo if it helps

@jsbain

This comment has been minimized.

Copy link
Contributor

commented Aug 15, 2018

If you do a git push, you can use the -u user:pass option, which will update the pw.

Alternatively, in the console:

import keychain
keychain.set_password('stash.git.github.com', user, pw)
@TheLastDestroyer

This comment has been minimized.

Copy link
Author

commented Aug 15, 2018

Ok, obviously that wasn’t the problem, still can’t clone a private repo, is this a limitation of the app or a bug? Getting stash: <class 'dulwich.errors.GitProtocolError'>: unexpected http response 401

I also noticed I’m now getting the following error when trying to save commit details (name email etc)
stash: <type 'exceptions.AttributeError'>: 'StackedConfig' object has no attribute 'write_to_path'
And pushing (to a public repo)
stash: <type 'exceptions.AttributeError'>: 'function' object has no attribute 'urlparse'

I’ve tried deleting stash (from the python modules/site packages folder but the problem persists

@jsbain

This comment has been minimized.

Copy link
Contributor

commented Aug 26, 2018

as a temporary workaround, in bin/git.py, at line 391, change
config = repo.repo.get_stackedconfig()
to
config = repo.repo.get_config()

@jsbain

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2018

Also, implement the fix in #332: search and replace all urlparse.urlparse with simply urlparse.

@TheLastDestroyer

This comment has been minimized.

Copy link
Author

commented Aug 27, 2018

Thanks, I'll give it a go

@jsbain

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2018

Okay, #333 fixes the first issue as well.

@TheLastDestroyer

This comment has been minimized.

Copy link
Author

commented Aug 27, 2018

Ok given it a go, done the find and replace but my git.py (python modules/site-packages/stash/bin/git.py) does not have that on line 391 or in it at all, any get config is already config = repo.repo.get_config().

Cloning a non private repo now works under python 2.7 though is completely silent, still fails under python 3 complaining about no module called urlparse (though this is a separate issue).

Committing also still has the same problems

I am still unable to clone a private repo with the same dulwich 401 error

I’m now also having issues with git init not doing anything

@TheLastDestroyer

This comment has been minimized.

Copy link
Author

commented Aug 27, 2018

I feel this issue has got out of hand though, I’m closing this (I’ve fixed my password) and will open sone new issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.