Fixed bug related to dirty workdir#28
Conversation
|
Thank you for the fix. Just out of curiosity, in which situation is this necessary ? |
|
In the situation where the entire program crashes because my Because then it's not stripped away and the |
|
I want to understand how Also, I'd like to build a regression test against this before merging. |
|
Well, you're running a bash command in the background. Usually any command output appends a newline at the end. Might be a git version issue. And describe_out: |
|
Thanks, that explains it. That line of code is never reached because at the moment at dirty workdir aborts |
Fixed bug related to dirty workdir
|
Actually it was reached (when my directory was dirty), otherwise it wouldn't have crashed bumpversion. But I never investigated how it reached that line. But in any case, this is now fixed and shouldn't be a problem anymore. |
|
Right. Thanks again. Sent from my pocket calculator
|
|
This is now part of v0.3.8. Running Also: I'm sorry for realising too late that we could have met at 30C3 to nerd out about bumping versions :( |
|
Great :)
Ah. Next time maybe :) |
describe_out[-1]may contain a newline, therefore thestrip()is necessary.isdoes identity comparison. You need==there.