X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=devel%2Fnmbug%2Fnmbug;h=e406395d3045f31df5fa492ffb96755c39d52594;hb=554b90b5;hp=932ec12d41b9245387e89bc3ca0810f05251ad18;hpb=9d25c97d8b4464e65f8bd6705db47603c94af275;p=notmuch diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug index 932ec12d..e406395d 100755 --- a/devel/nmbug/nmbug +++ b/devel/nmbug/nmbug @@ -80,7 +80,7 @@ except AttributeError: # Python < 3.2 See PEP 343 for details on context managers [1]. - [1]: http://legacy.python.org/dev/peps/pep-0343/ + [1]: https://www.python.org/dev/peps/pep-0343/ """ def __init__(self, **kwargs): self.name = _tempfile.mkdtemp(**kwargs) @@ -308,6 +308,7 @@ def clone(repository): wait=True) _git(args=['config', '--unset', 'core.worktree'], wait=True) _git(args=['config', 'core.bare', 'true'], wait=True) + _git(args=['branch', 'config', 'origin/config'], wait=True) def _is_committed(status): @@ -607,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):])