-rw-r--r-- | cgit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -104,17 +104,17 @@ static void cgit_print_repo_page(struct cacheitem *item) | |||
104 | if (!strcmp(cgit_query_page, "log")) { | 104 | if (!strcmp(cgit_query_page, "log")) { |
105 | cgit_print_log(cgit_query_head, cgit_query_ofs, 100, | 105 | cgit_print_log(cgit_query_head, cgit_query_ofs, 100, |
106 | cgit_query_search); | 106 | cgit_query_search); |
107 | } else if (!strcmp(cgit_query_page, "tree")) { | 107 | } else if (!strcmp(cgit_query_page, "tree")) { |
108 | cgit_print_tree(cgit_query_sha1, cgit_query_path); | 108 | cgit_print_tree(cgit_query_sha1, cgit_query_path); |
109 | } else if (!strcmp(cgit_query_page, "commit")) { | 109 | } else if (!strcmp(cgit_query_page, "commit")) { |
110 | cgit_print_commit(cgit_query_sha1); | 110 | cgit_print_commit(cgit_query_sha1); |
111 | } else if (!strcmp(cgit_query_page, "view")) { | 111 | } else if (!strcmp(cgit_query_page, "view")) { |
112 | cgit_print_view(cgit_query_sha1); | 112 | cgit_print_view(cgit_query_sha1, cgit_query_path); |
113 | } else if (!strcmp(cgit_query_page, "diff")) { | 113 | } else if (!strcmp(cgit_query_page, "diff")) { |
114 | cgit_print_diff(cgit_query_sha1, cgit_query_sha2); | 114 | cgit_print_diff(cgit_query_sha1, cgit_query_sha2); |
115 | } else { | 115 | } else { |
116 | cgit_print_error("Invalid request"); | 116 | cgit_print_error("Invalid request"); |
117 | } | 117 | } |
118 | cgit_print_docend(); | 118 | cgit_print_docend(); |
119 | } | 119 | } |
120 | 120 | ||