mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-17 23:53:15 +01:00
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.
This commit is contained in:
parent
c41d0db077
commit
9bbc54bd40
1 changed files with 2 additions and 0 deletions
|
@ -608,6 +608,8 @@ def _index_tags():
|
||||||
stdin=_subprocess.PIPE,
|
stdin=_subprocess.PIPE,
|
||||||
additional_env={'GIT_INDEX_FILE': path}) as git:
|
additional_env={'GIT_INDEX_FILE': path}) as git:
|
||||||
for line in notmuch.stdout:
|
for line in notmuch.stdout:
|
||||||
|
if line.strip().startswith('#'):
|
||||||
|
continue
|
||||||
(tags_string, id) = [_.strip() for _ in line.split(' -- id:')]
|
(tags_string, id) = [_.strip() for _ in line.split(' -- id:')]
|
||||||
tags = [
|
tags = [
|
||||||
_unquote(tag[len(prefix):])
|
_unquote(tag[len(prefix):])
|
||||||
|
|
Loading…
Add table
Reference in a new issue