Default repo description to "[no description]"
Otherwise, when you leave out a description for a repository, the NULL default causes cgit to print out titles like "cgit - (null)". Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
fc4c4ba3a9
commit
7b346647c9
2
shared.c
2
shared.c
@ -116,7 +116,7 @@ struct repoinfo *add_repo(const char *url)
|
|||||||
ret->url = trim_end(url, '/');
|
ret->url = trim_end(url, '/');
|
||||||
ret->name = ret->url;
|
ret->name = ret->url;
|
||||||
ret->path = NULL;
|
ret->path = NULL;
|
||||||
ret->desc = NULL;
|
ret->desc = "[no description]";
|
||||||
ret->owner = NULL;
|
ret->owner = NULL;
|
||||||
ret->group = cgit_repo_group;
|
ret->group = cgit_repo_group;
|
||||||
ret->defbranch = "master";
|
ret->defbranch = "master";
|
||||||
|
Loading…
Reference in New Issue
Block a user