Как я могу использовать reposurgeon с хранилищем, содержащим пробелы?

У меня есть git-репозиторий с множеством бинарных файлов / сборочных артефактов. Я пытаюсь удалить их с помощью reposurgeon. Первоначально, он задохнулся и умер при чтении состояния каталога. Я смог немного взломать источник и пройти мимо этого.

Но теперь, когда я пытаюсь восстановить результат, я получаю его плохо:

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

Любая подсказка, как обойти или исправить это?

0 ответов

Другие вопросы по тегам