aboutsummaryrefslogtreecommitdiffstats
path: root/ui-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-tree.c')
-rw-r--r--ui-tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 4d932a0..305c951 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -84,7 +84,7 @@ static void print_binary_buffer(char *buf, unsigned long size)
84 html("</table>\n"); 84 html("</table>\n");
85} 85}
86 86
87static void print_object(const unsigned char *sha1, char *path, const char *basename) 87static void print_object(const unsigned char *sha1, char *path, const char *basename, const char *rev)
88{ 88{
89 enum object_type type; 89 enum object_type type;
90 char *buf; 90 char *buf;
@@ -106,7 +106,7 @@ static void print_object(const unsigned char *sha1, char *path, const char *base
106 106
107 htmlf("blob: %s (", sha1_to_hex(sha1)); 107 htmlf("blob: %s (", sha1_to_hex(sha1));
108 cgit_plain_link("plain", NULL, NULL, ctx.qry.head, 108 cgit_plain_link("plain", NULL, NULL, ctx.qry.head,
109 curr_rev, path); 109 rev, path);
110 html(")\n"); 110 html(")\n");
111 111
112 if (ctx.cfg.max_blob_size && size / 1024 > ctx.cfg.max_blob_size) { 112 if (ctx.cfg.max_blob_size && size / 1024 > ctx.cfg.max_blob_size) {
@@ -237,7 +237,7 @@ static int walk_tree(const unsigned char *sha1, const char *base, int baselen,
237 ls_head(); 237 ls_head();
238 return READ_TREE_RECURSIVE; 238 return READ_TREE_RECURSIVE;
239 } else { 239 } else {
240 print_object(sha1, buffer, pathname); 240 print_object(sha1, buffer, pathname, curr_rev);
241 return 0; 241 return 0;
242 } 242 }
243 } 243 }