~edwargix/git.sr.ht

1fbe00f49efd5633e3afb890c22a769c86a42130 — Drew DeVault 3 years ago 4ded12e
Fix tree paths with slashes in refs
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 192,7 192,7 @@ def lookup_ref(git_repo, ref, path):
def tree(owner, repo, ref, path):
    owner, repo = get_repo_or_redir(owner, repo)

    if ref and "/" in ref:
    if ref and "/" in ref and not path:
        ref, _, path = ref.partition("/")

    with GitRepository(repo.path) as git_repo: