Fix base path handling for stagit-index too - stagit-gopher - A git gopher frontend. (mirror) HTML git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 5012d76a0494d9afa62840159e2a58e33af2c814 DIR parent e6c36b0eb1f0af8fd93eced69c48c271f21f6a12 HTML Author: Quentin Rameau <quinq@fifth.space> Date: Sat, 1 Jul 2017 13:50:30 +0200 Fix base path handling for stagit-index too Diffstat: M stagit-gopher-index.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/stagit-gopher-index.c b/stagit-gopher-index.c @@ -16,7 +16,7 @@ static git_repository *repo; -static const char *relpath = "/"; +static const char *relpath = ""; static char description[255] = "Repositories"; static char *name = ""; @@ -164,7 +164,7 @@ writelog(FILE *fp) if (author) printtimeshort(fp, &(author->when)); trim(buf, sizeof(buf), stripped_name); - fprintf(fp, "|%s%s/log.gph|server|port]\n", relpath, buf); + fprintf(fp, "|%s/%s/log.gph|server|port]\n", relpath, buf); git_commit_free(commit); err: