X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=devel%2Fnmbug%2Fnmbug-status;h=e845c2a5c8f702cc5d988fa6ea16ba3b0e53e828;hb=244f8739;hp=19dc48abf557d3c1b5732c075fb82e5793015ebe;hpb=a351df1a06923b8e826029ec06c7d25aa28f8cf3;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: