From 314d9ea5a3bc60ec518e314bb0bf8072123dc08f Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 29 Nov 2008 21:49:07 -0800 Subject: Set prefix in snapshots when using dwimmery This patch sets the directory prefix in archives to be the filename, excluding the suffix (.tar.gz, .tar.bz2 etc). The patch also removes the prefix parameter in cgit_print_snapshot() as the prefix might differ. Signed-off-by: Lars Hjemli --- cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd.c') diff --git a/cmd.c b/cmd.c index 5b3c14c..8914fa5 100644 --- a/cmd.c +++ b/cmd.c @@ -104,8 +104,7 @@ static void refs_fn(struct cgit_context *ctx) static void snapshot_fn(struct cgit_context *ctx) { - cgit_print_snapshot(ctx->qry.head, ctx->qry.sha1, - cgit_repobasename(ctx->repo->url), ctx->qry.path, + cgit_print_snapshot(ctx->qry.head, ctx->qry.sha1, ctx->qry.path, ctx->repo->snapshots, ctx->qry.nohead); } -- cgit v1.2.3-24-g4f1b