~edwargix/git.sr.ht

63187f851ed6d7c8ef1a4e408e2492bbc3e7403d — Drew DeVault 7 years ago 12e03fe
Fix patches not appearing correctly

Fixes https://todo.sr.ht/~sircmpwn/git.sr.ht/120
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 315,7 315,7 @@ def patch(owner, repo, ref):
        "format-patch",
        "--stdout", "-1",
        ref
    ], timeout=10, stdout=sys.stdout, stderr=sys.stderr)
    ], timeout=10, stdout=subprocess.PIPE, stderr=sys.stderr)
    if subp.returncode != 0:
        return "Error preparing patch", 500
    return Response(subp.stdout, mimetype='text/plain')