invalid .gitmodules crash any work with repo
hallow! i've accidentaly commit to git-repo .gitmodules with mistake. now i can't pull/push from it with such a starcktrace:
imho, such behaviour is too cruel. now i can't do anything with hggit on my repo. only native git work availiable.
Exactly my problem is miss '[' at submodule section: submodule "contiki"]
- and dulwich parser go break on it
% hg pull --verbose --force git+ssh://git@bitbucket.org/vsheshin/proteos.git
pulling from git+ssh://git@bitbucket.org/vsheshin/proteos.git
importing git objects into hg
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.17 (v2.7.17:c2f86d86e6, Oct 19 2019, 21:01:17) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 5.4.1)
** Extensions loaded: convert, strip, mq, rebase, record, transplant, highlight, show, split, commitextras, fix, uncommit, share, hggit, censor, histedit, narrow, closehead, remotenames, schemes, eol, tortoisehg.util.hgcommands, tortoisehg.util.partialcommit, tortoisehg.util.pipeui, tortoisehg.util.win32ill, tortoisehg.util.hgdispatch
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.17 (v2.7.17:c2f86d86e6, Oct 19 2019, 21:01:17) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 5.4.1)
** Extensions loaded: convert, strip, mq, rebase, record, transplant, highlight, show, split, commitextras, fix, uncommit, share, hggit, censor, histedit, narrow, closehead, remotenames, schemes, eol, tortoisehg.util.hgcommands, tortoisehg.util.partialcommit, tortoisehg.util.pipeui, tortoisehg.util.win32ill, tortoisehg.util.hgdispatch
Traceback (most recent call last):
File "hg", line 58, in <module>
File "mercurial\dispatch.pyo", line 112, in run
File "mercurial\dispatch.pyo", line 298, in dispatch
File "mercurial\dispatch.pyo", line 472, in _runcatch
File "mercurial\dispatch.pyo", line 481, in _callcatch
File "mercurial\scmutil.pyo", line 152, in callcatch
File "mercurial\dispatch.pyo", line 462, in _runcatchfunc
File "mercurial\dispatch.pyo", line 1226, in _dispatch
File "mercurial\dispatch.pyo", line 910, in runcommand
File "mercurial\dispatch.pyo", line 1237, in _runcommand
File "mercurial\dispatch.pyo", line 1223, in <lambda>
File "mercurial\util.pyo", line 1864, in check
File "mercurial\util.pyo", line 1864, in check
File "hgext\mq.pyo", line 4218, in mqcommand
File "mercurial\util.pyo", line 1864, in check
File "mercurial\commands.pyo", line 6514, in serve
File "mercurial\server.pyo", line 164, in runservice
File "mercurial\commandserver.pyo", line 429, in run
File "mercurial\commandserver.pyo", line 363, in serve
File "mercurial\commandserver.pyo", line 337, in serveone
File "mercurial\commandserver.pyo", line 321, in runcommand
File "mercurial\dispatch.pyo", line 298, in dispatch
File "mercurial\dispatch.pyo", line 472, in _runcatch
File "mercurial\dispatch.pyo", line 481, in _callcatch
File "mercurial\scmutil.pyo", line 152, in callcatch
File "mercurial\dispatch.pyo", line 462, in _runcatchfunc
File "tortoisehg\util\hgdispatch.pyo", line 21, in _dispatch
File "mercurial\dispatch.pyo", line 1226, in _dispatch
File "mercurial\dispatch.pyo", line 910, in runcommand
File "mercurial\dispatch.pyo", line 1237, in _runcommand
File "mercurial\dispatch.pyo", line 1223, in <lambda>
File "mercurial\util.pyo", line 1864, in check
File "mercurial\util.pyo", line 1864, in check
File "hgext\mq.pyo", line 4218, in mqcommand
File "mercurial\util.pyo", line 1864, in check
File "mercurial\util.pyo", line 1864, in check
File "hgext\narrow\narrowcommands.pyo", line 148, in pullnarrowcmd
File "mercurial\util.pyo", line 1864, in check
File "mercurial\util.pyo", line 1864, in check
File "hgext\rebase.pyo", line 2115, in pullrebase
File "mercurial\util.pyo", line 1864, in check
File "mercurial\commands.pyo", line 5467, in pull
File "mercurial\extensions.pyo", line 509, in closure
File "D:/projects/hg/hg-git\hggit\util.py", line 64, in inner
return f(*args, **kwargs)
File "D:/projects/hg/hg-git\hggit\__init__.py", line 368, in exchangepull
pullop.cgresult = repo.githandler.fetch(remote.path, heads)
File "D:/projects/hg/hg-git\hggit\git_handler.py", line 294, in fetch
imported = self.import_git_objects(remote_name, filteredrefs)
File "D:/projects/hg/hg-git\hggit\git_handler.py", line 821, in import_git_objects
self.import_git_commit(commit)
File "D:/projects/hg/hg-git\hggit\git_handler.py", line 894, in import_git_commit
gitmodules = self.parse_gitmodules(git_commit_tree)
File "D:/projects/hg/hg-git\hggit\git_handler.py", line 1607, in parse_gitmodules
tt = dul_config.ConfigFile.from_file(fo)
File "C:\Program Files\TortoiseHg\lib\library.zip\dulwich\config.py", line 414, in from_file
ValueError: setting 'submodule "contiki"]\n' without section
cmdserver: процесс завершился неожиданно с кодом 255