~edwargix/git.sr.ht

2ee221f4cc5199c76962c6076dc93fa708510d25 — Drew DeVault 8 years ago bd16105
Add plain to straight pass-through cgit requests
1 files changed, 1 insertions(+), 0 deletions(-)

M gitsrht/blueprints/public.py
M gitsrht/blueprints/public.py => gitsrht/blueprints/public.py +1 -0
@@ 67,6 67,7 @@ def cgit_passthrough(user, repo, cgit_path):
            repo_name=repo)

@public.route("/~<user>/<repo>/snapshot/<tarball>.tar.xz")
@public.route("/~<user>/<repo>/plain/<tarball>.tar.xz")
def tarball(user, repo, tarball):
    check_repo(user, repo)
    r = requests.get("{}/{}".format(upstream, request.full_path), stream=True)