~edwargix/git.sr.ht

0109b739be3766b6dd70a50ae3bf95a9c3e11c16 — Armin Weigl 3 years ago 1fbe00f
Use decoded ref in archive filename
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 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):