*/
#include "cgit.h"
+#include "scan-tree.h"
#include "configfile.h"
#include "html.h"
return;
if (base == path)
- rel = xstrdup(fmt("%s", path));
+ rel = xstrdup(path);
else
- rel = xstrdup(fmt("%s", path + strlen(base) + 1));
+ rel = xstrdup(path + strlen(base) + 1);
if (!strcmp(rel + strlen(rel) - 5, "/.git"))
rel[strlen(rel) - 5] = '\0';
add_repo(base, fmt("%s/.git", path), fn);
goto end;
}
- while((ent = readdir(dir)) != NULL) {
+ while ((ent = readdir(dir)) != NULL) {
if (ent->d_name[0] == '.') {
if (ent->d_name[1] == '\0')
continue;