X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/620bb3e5e4ff87da740fe7232ba74330b5f862d4..776200b1c10536174f68fc6599fc709ae620db54:/shared.c?ds=inline diff --git a/shared.c b/shared.c index 9c992c8..f063894 100644 --- a/shared.c +++ b/shared.c @@ -118,7 +118,7 @@ struct repoinfo *add_repo(const char *url) ret->url = trim_end(url, '/'); ret->name = ret->url; ret->path = NULL; - ret->desc = NULL; + ret->desc = "[no description]"; ret->owner = NULL; ret->group = cgit_repo_group; ret->defbranch = "master"; @@ -492,7 +492,7 @@ void cgit_diff_tree(const unsigned char *old_sha1, opt.output_format = DIFF_FORMAT_CALLBACK; opt.detect_rename = 1; opt.rename_limit = cgit_renamelimit; - opt.recursive = 1; + DIFF_OPT_SET(&opt, RECURSIVE); opt.format_callback = cgit_diff_tree_cb; opt.format_callback_data = fn; if (prefix) {