How do I use reposurgeon with a repository containing spaces?

268 Views Asked by At

I have a git repository that has tons of binary files/build artifacts in it. I'm trying to remove them using reposurgeon. Initially, it choked and died when reading the state of the directory. I was able to hack the source a bit and get past that.

But now when I'm trying to rebuild the result, I get it badly:

reposurgeon% rebuild
reposurgeon: exporting......(15.53 sec) done.
reposurgeon: fatal exception in popen_or_die.
Traceback (most recent call last):
  File "../reposurgeon-3.0/reposurgeon", line 9119, in <module>
    interactive()
  File "../reposurgeon-3.0/reposurgeon", line 9108, in interactive
    interpreter.cmdloop()
  File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "../reposurgeon-3.0/reposurgeon", line 6105, in onecmd
    cmd.Cmd.onecmd(self, line)
  File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "../reposurgeon-3.0/reposurgeon", line 7506, in do_rebuild
    rebuild_repo(self.chosen(), parse.line, parse.options, self.preferred)
  File "../reposurgeon-3.0/reposurgeon", line 5540, in rebuild_repo
    progress=verbose>0)
  File "../reposurgeon-3.0/reposurgeon", line 5540, in rebuild_repo
    progress=verbose>0)
  File "../reposurgeon-3.0/reposurgeon", line 4600, in fast_export
    fp.write(event.dump(target, options=options, realized=realized))
  File "../reposurgeon-3.0/reposurgeon", line 1777, in dump
    parts.extend(op.dump(vcs) + "\n" for op in self.fileops)
  File "../reposurgeon-3.0/reposurgeon", line 1777, in <genexpr>
    parts.extend(op.dump(vcs) + "\n" for op in self.fileops)
  File "../reposurgeon-3.0/reposurgeon", line 1288, in dump
    if len(self.path.split()) > 1:
AttributeError: 'NoneType' object has no attribute 'split'
fatal: Cannot determine the current working directory: No such file or directory

error: can't write crash report .git/fast_import_crash_2923: No such file or dir
ectory
error: git-fast-import died of signal 11

Any clue how to work around or fix this?

0

There are 0 best solutions below