]> granicus.if.org Git - cgit/commitdiff
Do not include current path in the "tree" menu link
authorLars Hjemli <hjemli@gmail.com>
Tue, 26 Jun 2007 15:32:03 +0000 (17:32 +0200)
committerLars Hjemli <hjemli@gmail.com>
Tue, 26 Jun 2007 15:32:08 +0000 (17:32 +0200)
When generating the menu links on repo pages the tree link included the
current path. This made the link pretty useless whenever the current path
was set so this commit just passes NULL instead.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
ui-shared.c

index a198cf2e2bc42ff768d82f495b19ffe7db530102..64c237fe0145230d18b34e8dbb6ecb96d87bf160 100644 (file)
@@ -305,7 +305,7 @@ void cgit_print_pageheader(char *title, int show_search)
                              cgit_query_sha1, cgit_query_path);
                html(" ");
                cgit_tree_link("tree", NULL, NULL, cgit_query_head,
-                              cgit_query_sha1, cgit_query_path);
+                              cgit_query_sha1, NULL);
                html(" ");
                cgit_commit_link("commit", NULL, NULL, cgit_query_head,
                              cgit_query_sha1);