commit - 525dfdf4c8ff4fe146e1925f64a5f8e428795611
commit + c127fc49cfbf532409724a0e4644f4b2539e430f
blob - b5a140ba22d460fe720b01f0db1a2c26b2d0661f
blob + 50fee3056b1e5f7a9bc78f255201d8b1539a2995
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
}
const struct got_error *
-got_get_repo_owner(char **owner, struct request *c, char *dir)
+got_get_repo_owner(char **owner, struct request *c)
{
struct server *srv = c->srv;
struct transport *t = c->t;
}
const struct got_error *
-got_get_repo_age(char **repo_age, struct request *c, char *dir,
+got_get_repo_age(char **repo_age, struct request *c,
const char *refname, int ref_tm)
{
const struct got_error *error = NULL;
blob - 09d8f166fab40a704104d07aaa4c8e0564295c66
blob + 87aa73baf749f6c131882947826effd5278c6c05
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
if (strncmp(refname, "refs/heads/", 11) != 0)
continue;
- error = got_get_repo_age(&age, c, qs->path, refname,
- TM_DIFF);
+ error = got_get_repo_age(&age, c, refname, TM_DIFF);
if (error)
goto done;
goto err;
}
-
repo = find_cached_repo(srv, repo_dir->path);
if (repo == NULL) {
error = cache_repo(&repo, srv, repo_dir, sock);
repo_dir->path);
if (error)
goto err;
- error = got_get_repo_owner(&repo_dir->owner, c, repo_dir->path);
+ error = got_get_repo_owner(&repo_dir->owner, c);
if (error)
goto err;
- error = got_get_repo_age(&repo_dir->age, c, repo_dir->path,
- NULL, TM_DIFF);
+ error = got_get_repo_age(&repo_dir->age, c, NULL, TM_DIFF);
if (error)
goto err;
error = gotweb_get_clone_url(&repo_dir->url, srv, repo_dir->path);
blob - a8a55276acbd0b209205938c75b88d6918b1c6b8
blob + 0a9217f7fb5cc2256686d1d01c59b69e5f96d4ad
--- gotwebd/gotwebd.h
+++ gotwebd/gotwebd.h
int fcgi_gen_binary_response(struct request *, const uint8_t *, int);
/* got_operations.c */
-const struct got_error *got_get_repo_owner(char **, struct request *, char *);
-const struct got_error *got_get_repo_age(char **, struct request *, char *,
+const struct got_error *got_get_repo_owner(char **, struct request *);
+const struct got_error *got_get_repo_age(char **, struct request *,
const char *, int);
const struct got_error *got_get_repo_commits(struct request *, int);
const struct got_error *got_get_repo_tags(struct request *, int);