stagit-gopher

[fork] gopher git frontend
Log | Files | Refs | README | LICENSE

commit 5012d76a0494d9afa62840159e2a58e33af2c814
parent e6c36b0eb1f0af8fd93eced69c48c271f21f6a12
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sat,  1 Jul 2017 13:50:30 +0200

Fix base path handling for stagit-index too

Diffstat:
Mstagit-gopher-index.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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: