~edwargix/git.sr.ht

d34594f65006222070deffa3efe6a78cd7f3c56a — Drew DeVault 6 years ago 6db5a97
Fix diff of initial commit
1 files changed, 2 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +2 -1
@@ 289,7 289,8 @@ def commit(owner, repo, ref):
        parent = git_repo.revparse_single(ref + "^")
        diff = git_repo.diff(parent, ref)
    except KeyError:
        diff = ref.tree.diff_to_tree()
        parent = None
        diff = commit.tree.diff_to_tree(swap=True)
    diff.find_similar(pygit2.GIT_DIFF_FIND_RENAMES)
    refs = collect_refs(git_repo)
    return render_template("commit.html", view="log",