Comment 0 for bug 1634053

Revision history for this message
mdes@hp.com (mdes) wrote :

  2016-10-17.09:57 desbonne@kilcolgan2:~/src/review.hpcloud.net/openstack/python-novaclient$ pip freeze | grep -i git
  git-upstream==0.11.0
  gitdb2==2.0.0
  GitPython==2.0.9
  2016-10-17.09:57 desbonne@kilcolgan2:~/src/review.hpcloud.net/openstack/python-novaclient$ git-upstream import --into hp/prerelease/newton stable/newton
  Traceback (most recent call last):
    File "/tmp/with_workspace.37QzIZ/_workspace_venv/bin/git-upstream", line 11, in <module>
      sys.exit(main())
    File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/main.py", line 142, in main
      args.cmd.run(args)
    File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/commands/__init__.py", line 71, in run
      return self.execute()
    File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/commands/import.py", line 145, in execute
      extra_branches=self.args.branches)
    File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/lib/importupstream.py", line 48, in __init__
      super(ImportUpstream, self).__init__(*args, **kwargs)
    File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/log.py", line 154, in __init__
      super(LogDedentMixin, self).__init__(*args, **kwargs)
    File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git_upstream/lib/utils.py", line 39, in __init__
      os.path.curdir))
    File "/tmp/with_workspace.37QzIZ/_workspace_venv/local/lib/python2.7/site-packages/git/repo/base.py", line 146, in __init__
      self.git_dir = None
  AttributeError: can't set attribute

Looks like due to the _GitUpstreamCompatRepo_ class being wrapped around the git.Repo class due to gitpython-2.0.9 dropping the __slots__ attribute from the base repo class.