Accommodate ref names with non-breaking spaces
commitd46a1fad5edae3198e51f97717fef41495907685
authorPeter Grayson <pete@jpgrayson.net>
Mon, 14 Jun 2021 01:37:02 +0000 (13 21:37 -0400)
committerPeter Grayson <pete@jpgrayson.net>
Mon, 14 Jun 2021 02:12:28 +0000 (13 22:12 -0400)
tree294de347dfeb0bb5d3373c2283719f004edb6cec
parent283c4d43158a77c6e361e752f66cf1de0cee444c
Accommodate ref names with non-breaking spaces

When parsing git ref names from show-ref, use re.ASCII to ensure that
all non-ascii space characters (e.g. the non-breaking space character)
match r'\S'. This better matches git's rules for ref names.

Fixes #111

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
stgit/lib/git/repository.py
t/t4401-nbsp.sh [new file with mode: 0755]