E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance() Conditions in the method _list_branches were switched because: issubclass(git.RemoteReference, git.Head)
is
is not
isinstance()
_list_branches
issubclass(git.RemoteReference, git.Head)
Signed-off-by: Ondrej Nosek onosek@redhat.com
Looks good to me. I'm not sure if the Jenkins failure in tests is related. I don't see how it could be related.
rebased onto 5c915a549ad2d10a3eb36c56801574d81a601670
Thanks @lsedlar for the suggested fix.
Pull-Request has been merged by onosek
E721 do not compare types, for exact checks use
is/is not, forinstance checks use
isinstance()Conditions in the method
_list_brancheswere switched because:issubclass(git.RemoteReference, git.Head)Signed-off-by: Ondrej Nosek onosek@redhat.com