author | Evan Martin <martine@xen.localdomain> | 2007-12-02 22:39:30 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-12-02 23:21:44 (UTC) |
commit | 7b346647c9d8cc3b4acccecc3ede526dc4b2fb06 (patch) (unidiff) | |
tree | 0c19269fe65337ee04e960017140c32e65f2d21c | |
parent | fc4c4ba3a99f4fe4bd8a42caca902269d2e0b678 (diff) | |
download | cgit-7b346647c9d8cc3b4acccecc3ede526dc4b2fb06.zip cgit-7b346647c9d8cc3b4acccecc3ede526dc4b2fb06.tar.gz cgit-7b346647c9d8cc3b4acccecc3ede526dc4b2fb06.tar.bz2 |
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>
-rw-r--r-- | shared.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -113,13 +113,13 @@ struct repoinfo *add_repo(const char *url) | |||
113 | } | 113 | } |
114 | 114 | ||
115 | ret = &cgit_repolist.repos[cgit_repolist.count-1]; | 115 | ret = &cgit_repolist.repos[cgit_repolist.count-1]; |
116 | ret->url = trim_end(url, '/'); | 116 | ret->url = trim_end(url, '/'); |
117 | ret->name = ret->url; | 117 | ret->name = ret->url; |
118 | ret->path = NULL; | 118 | ret->path = NULL; |
119 | ret->desc = NULL; | 119 | ret->desc = "[no description]"; |
120 | ret->owner = NULL; | 120 | ret->owner = NULL; |
121 | ret->group = cgit_repo_group; | 121 | ret->group = cgit_repo_group; |
122 | ret->defbranch = "master"; | 122 | ret->defbranch = "master"; |
123 | ret->snapshots = cgit_snapshots; | 123 | ret->snapshots = cgit_snapshots; |
124 | ret->enable_log_filecount = cgit_enable_log_filecount; | 124 | ret->enable_log_filecount = cgit_enable_log_filecount; |
125 | ret->enable_log_linecount = cgit_enable_log_linecount; | 125 | ret->enable_log_linecount = cgit_enable_log_linecount; |