Dulwich crashes on fast-import

Bug #1249029 reported by Ted
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dulwich
Fix Released
Medium
Jelmer Vernooij

Bug Description

Dulwich can't import a simple Git repo. It crashes with the following traceback:

Traceback (most recent call last):
  File "./dulwich_bug.py", line 17, in <module>
    fi.import_stream(sys.stdin)
  File "/usr/local/lib/python2.7/dist-packages/dulwich/fastexport.py", line 124, in import_stream
    self.process(p.iter_commands)
  File "/usr/lib/python2.7/dist-packages/fastimport/processor.py", line 64, in process
    self._process(command_iter)
  File "/usr/lib/python2.7/dist-packages/fastimport/processor.py", line 75, in _process
    handler(self, cmd)
  File "/usr/local/lib/python2.7/dist-packages/dulwich/fastexport.py", line 207, in reset_handler
    self.rep.refs[cmd.from_] = cmd.id
AttributeError: 'ResetCommand' object has no attribute 'id'

To reproduce:

1. git clone https://github.com/tedks/dulwich-bug.git
2. cd dulwich-bug && ./reproduce.sh

This runs git fast-export and pipes the output to a simple script calling Dulwich.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Fixed in trunk.

Changed in dulwich:
status: New → Fix Released
importance: Undecided → Medium
assignee: nobody → Jelmer Vernooij (jelmer)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.