about summary refs log tree commit diff
path: root/ui-patch.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui-patch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-patch.c b/ui-patch.c
index e7a010a..1da0a27 100644
--- a/ui-patch.c
+++ b/ui-patch.c
@@ -76,7 +76,7 @@ void cgit_print_patch(char *hex, struct cacheitem *item)
 	char *patchname;
 
 	if (!hex)
-		hex = cgit_query_head;
+		hex = ctx.qry.head;
 
 	if (get_sha1(hex, sha1)) {
 		cgit_print_error(fmt("Bad object id: %s", hex));