Test for generated patchname with trailing period
commit48d73dc79bd6433166a9a7437bca595bd05ea1aa
authorPeter Grayson <pete@jpgrayson.net>
Mon, 13 Dec 2021 15:39:59 +0000 (13 10:39 -0500)
committerPeter Grayson <pete@jpgrayson.net>
Mon, 13 Dec 2021 16:00:11 +0000 (13 11:00 -0500)
tree0fbc78cfbdfc8017455d471b54e261d59affdc38
parent247c93ca48fdbecf13ba105a47ea80398eea550d
Test for generated patchname with trailing period

There is a corner case where generated patchnames can end up with a
trailing period, which is invalid for patch (and git ref) names.

When constructing the shortened name, we now remove trailing periods
from each "word" component. A message such as "This is. My patch." will
now become "this-is-my-patch" instead of "this-is.-my-patch".

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
stgit/lib/stack.py
t/t1003-new.sh