aboutsummaryrefslogtreecommitdiffstats
path: root/ui-blob.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-blob.c')
-rw-r--r--ui-blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-blob.c b/ui-blob.c
index b333f86..d3c3a10 100644
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -85,7 +85,7 @@ int cgit_print_file(char *path, const char *head, int file_only)
85 if (get_sha1(head, sha1)) 85 if (get_sha1(head, sha1))
86 return -1; 86 return -1;
87 type = sha1_object_info(sha1, &size); 87 type = sha1_object_info(sha1, &size);
88 if (type == OBJ_COMMIT && path) { 88 if (type == OBJ_COMMIT) {
89 commit = lookup_commit_reference(sha1); 89 commit = lookup_commit_reference(sha1);
90 read_tree_recursive(commit->tree, "", 0, 0, &paths, walk_tree, &walk_tree_ctx); 90 read_tree_recursive(commit->tree, "", 0, 0, &paths, walk_tree, &walk_tree_ctx);
91 if (!walk_tree_ctx.found_path) 91 if (!walk_tree_ctx.found_path)