In some cases pygit2.Repository.diff() returns no difference between trees that are actually different
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-pygit2 (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Steps to reproduce:
git clone https:/
cd pygit2-
python3
import pygit2
r = pygit2.
tag1 = r.get('
tag2 = r.get('
len(r.diff(tag1, tag2))
Expected result: non-zero
Actual result: zero (0)
This differs from reality. "git diff 12f94a0b8488844
I'm using python3-pygit2 0.24.0-0ubuntu2 on Ubuntu 16.04.
Changed in python-pygit2 (Ubuntu): | |
status: | Triaged → Fix Released |
Also affects python3-pygit2 0.24.2-2build1 on Artful.
Does not affect pygit2 built from upstream master (commit c6305a062ba190f a4b968614911f0d ef752cc264) against libgit2 upstream git tag v0.25.1 (commit 2fcb8705e584ca6 1f6c4657525c9d2 713f6a39d2) . Current libgit2 upstream git master builds some v0.26 soname against which current pygit2 master refuses to build.