X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=devel%2Fnmbug%2Fnmbug;fp=devel%2Fnmbug%2Fnmbug;h=0cd911487a80b950090566cd4d3c41adfb91f484;hp=c0e7c3c69cc635c6cf89328adf750e78faeef47f;hb=7ef3b65376b87829441736f04b3231021f561d84;hpb=0a1558471f70ec8591c9d40808d1ffd930742054 diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug index c0e7c3c6..0cd91148 100755 --- a/devel/nmbug/nmbug +++ b/devel/nmbug/nmbug @@ -54,7 +54,7 @@ except ImportError: # Python 2 __version__ = '0.2' _LOG = _logging.getLogger('nmbug') -_LOG.setLevel(_logging.ERROR) +_LOG.setLevel(_logging.WARNING) _LOG.addHandler(_logging.StreamHandler()) NMBGIT = _os.path.expanduser( @@ -311,6 +311,13 @@ def clone(repository): _git(args=['config', '--unset', 'core.worktree'], wait=True, expect=(0, 5)) _git(args=['config', 'core.bare', 'true'], wait=True) _git(args=['branch', 'config', 'origin/config'], wait=True) + existing_tags = get_tags() + if existing_tags: + _LOG.warning( + 'Not checking out to avoid clobbering existing tags: {}'.format( + ', '.join(existing_tags))) + else: + checkout() def _is_committed(status):