From: David Bremner Date: Sun, 27 Mar 2016 20:25:11 +0000 (-0300) Subject: nmbug: ignore # comments X-Git-Tag: 0.22_rc0~25 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=9bbc54bd406fc218a5463efe9a127aee461fb47b nmbug: ignore # comments Lines starting with # have always (for a long time, anyway) been ignored by notmuch-restore, but have not been generated by notmuch-dump previously. In order to make nmbug robust against such output, ignore comment lines. --- diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug index 81f582ce..0787b2ba 100755 --- a/devel/nmbug/nmbug +++ b/devel/nmbug/nmbug @@ -608,6 +608,8 @@ def _index_tags(): stdin=_subprocess.PIPE, additional_env={'GIT_INDEX_FILE': path}) as git: for line in notmuch.stdout: + if line.strip().startswith('#'): + continue (tags_string, id) = [_.strip() for _ in line.split(' -- id:')] tags = [ _unquote(tag[len(prefix):])