Update of repository with sub-modules silently remove submodule if no commit found #200
Labels
contribution-required
Maintainer has no time and/or no plans to work on this, interested parties should submit a patch
Description:
I had had migrated a Mercurial repository with submodules to git. Then team pushed new changes to the Mercurial so I had to re-import it to git. Unfortunately I did a mistake: I forgot to re-import changes in submodule repository and just re-imported the parent repo. After a verification of git commits I found out that submodule was deleted.
Steps to reproduce
create submodule mapping
"submodule"="../submodule"
Import submodule
Import parent repository
Add new commit in submodule mercurial repository
Add new commit in parent mercurial repository
Run hg-fast-import for parent repository only
Result:
Parent repository contains a commit with removal of sub-module.
Stdout contains a warning that commit of sub-module is missing
Expected result:
hg-fast-import.sh should throw error. Migration should be halted.
The text was updated successfully, but these errors were encountered: