webgit_tree_action() dereferences an treeish to the tree object
[webgit] / src / object.c
index f23751551b841b8b4606a48dccdaee5eb2bbb0d8..d61b943a081b087d4225396323341495bd2ada3e 100644 (file)
@@ -271,14 +271,14 @@ webgit_html_tree (const unsigned char *sha1, const char *base, int baselen,
                                                     html (html_tag ("td"), pretty_mode (mode)),
                                                     html (html_tag ("td"),
                                                           webgit_repo_link (query_in_flight,
-                                                                           query_in_flight->repo,
-                                                                           strlen (query_in_flight->repo),
-                                                                           pathname, strlen (pathname),
-                                                                           NULL, 0,
-                                                                           "summary",
-                                                                           html_strndup (pathname, SIZE_MAX))
+                                                                            query_in_flight->repo,
+                                                                            strlen (query_in_flight->repo),
+                                                                            pathname, strlen (pathname),
+                                                                            sha1_to_hex (sha1), 40,
+                                                                            "tree",
+                                                                            html_strndup (pathname, SIZE_MAX))
                                                           ),
-                                                    html (html_tag ("td"), "history")
+                                                    html (html_tag ("td"), "history summary")
                                                     ),
                                               html_nl ()
                                               )