Remove compatibility hacks causing issues with newer GitPython
Remove some monkey patching used to allow git-upstream to work with
GitPython releases older than 0.3.2, as the project requirements now
depends on 1.0.1 or newer.
GitPython release from 2.0.9 onwards removes the '__slots__'
definition. This allowed for the git_dir attribute existence to be
checked to determine whether to patch the Commit class imported from
the GitPython project to add this attribute for older versions of the
API.
Reviewed: https:/ /review. openstack. org/387342 /git.openstack. org/cgit/ openstack/ git-upstream/ commit/ ?id=5c0a4a7e4d5 6a8301e7391abf0 bb79d387a98ae1
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5c0a4a7e4d56a83 01e7391abf0bb79 d387a98ae1
Author: Darragh Bailey <email address hidden>
Date: Mon Oct 17 11:26:44 2016 +0100
Remove compatibility hacks causing issues with newer GitPython
Remove some monkey patching used to allow git-upstream to work with
GitPython releases older than 0.3.2, as the project requirements now
depends on 1.0.1 or newer.
GitPython release from 2.0.9 onwards removes the '__slots__'
definition. This allowed for the git_dir attribute existence to be
checked to determine whether to patch the Commit class imported from
the GitPython project to add this attribute for older versions of the
API.
Change-Id: I3d83785b16cd06 50942c7112b5caf ffc21dddba7
Closes-Bug: #1634053