X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=devel%2Fnmbug%2Fnmbug-status;h=e845c2a5c8f702cc5d988fa6ea16ba3b0e53e828;hb=d4053be21acf4c3fce0b477e26eec95b42a36bd7;hp=19dc48abf557d3c1b5732c075fb82e5793015ebe;hpb=bed8b6743d1cfffe8193c6b3571ef460b92e4ade;p=notmuch diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index 19dc48ab..e845c2a5 100755 --- a/devel/nmbug/nmbug-status +++ b/devel/nmbug/nmbug-status @@ -92,7 +92,7 @@ def read_config(path=None, encoding=None): # read only the first line from the pipe sha1_bytes = subprocess.Popen( - ['git', '--git-dir', nmbhome, 'show-ref', '-s', branch], + ['git', '--git-dir', nmbhome, 'show-ref', '-s', '--heads', branch], stdout=subprocess.PIPE).stdout.readline() sha1 = sha1_bytes.decode(encoding).rstrip() if not sha1: