From 0109b739be3766b6dd70a50ae3bf95a9c3e11c16 Mon Sep 17 00:00:00 2001 From: Armin Weigl Date: Mon, 1 Mar 2021 16:22:17 +0100 Subject: [PATCH] Use decoded ref in archive filename --- gitsrht/blueprints/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py index 15f2c51..b3d96e6 100644 --- a/gitsrht/blueprints/repo.py +++ b/gitsrht/blueprints/repo.py @@ -362,7 +362,7 @@ def archive(owner, repo, ref): subp = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=sys.stderr) return send_file(subp.stdout, mimetype="application/tar+gzip", - as_attachment=True, attachment_filename=f"{repo.name}-{ref}.tar.gz") + as_attachment=True, attachment_filename=f"{repo.name}-{refname}.tar.gz") class _AnnotatedRef: def __init__(self, repo, ref): -- 2.38.4