stash icon indicating copy to clipboard operation
stash copied to clipboard

Issue saving commit details, python 2.7

Open MaxPelly opened this issue 6 years ago • 2 comments

I’m 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'

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

But can’t find this line is site-packages/stash/bin/git.py

MaxPelly avatar Aug 27 '18 19:08 MaxPelly

sorry, it was actually get_config_stack() and I think is in a different line. I have a pull request with a more robust fix (#333).

jsbain avatar Aug 29 '18 04:08 jsbain

There is a file with merged fixes. You could just copy out bin/git.py, or else clone it, or do selfupdate pointing to this branch, etc. commit 9939221.

jsbain avatar Aug 29 '18 05:08 jsbain