shithub: git9

Download patch

ref: ef4d73c490375846b821d4cd55307cfb6279ccef
parent: 0aebaa8fb7a3927c007307f647aab8a926870a09
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Dec 8 19:23:04 EST 2019

fix obscure error in query.

--- a/query.c
+++ b/query.c
@@ -144,7 +144,7 @@
 	for(i = 0; i < argc; i++)
 		p = seprint(p, e, "%s ", argv[i]);
 	if((n = resolverefs(&h, query)) == -1)
-		sysfatal("resolve %s: %r", argv[i]);
+		sysfatal("resolve %s: %r", query);
 	if(changes){
 		if(n != 2)
 			sysfatal("diff: need 2 commits, got %d", n);