You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user-provided patchdescr.tmpl is present, `stg new` would crash
with a TypeError due to a str/bytes mismatch.
Repairs #87.
Signed-off-by: Peter Grayson <pete@jpgrayson.net>
Issue:
Having a
patchdescr.tmpl
causesstg new
to fail with a Python exception.Current environment:
I've also re-produced this issue with
brew install stgit
which usespython@3.9
, as well as on an older version ofstgit 0.22
.Fix
The fix should just be to use
cd.message_str
instead ofcd.message
.After patching this, using a template stored in
.git/patchdescr.tmpl
works again.I apologize in advance for not putting up a fix myself.
The text was updated successfully, but these errors were encountered: