]> git.notmuchmail.org Git - notmuch/blobdiff - devel/nmbug/nmbug-status
nmbug-status: Use 'show-ref --heads' for loading configs
[notmuch] / devel / nmbug / nmbug-status
index 19dc48abf557d3c1b5732c075fb82e5793015ebe..e845c2a5c8f702cc5d988fa6ea16ba3b0e53e828 100755 (executable)
@@ -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: