Mercurial > public > mercurial-scm > hg
diff tests/test-convert-git.t @ 26077:e63d05fbae84
convert: add convert.git.skipsubmodules option
This adds an option to not pull in gitsubmodules during a convert. This is
useful when converting large git repositories where gitsubmodules were allowed
historically, but are no longer wanted.
author | Durham Goode <durham@fb.com> |
---|---|
date | Mon, 24 Aug 2015 22:16:01 -0700 |
parents | d9d3d49c4cf7 |
children | 7e8912dbcea2 |
line wrap: on
line diff
--- a/tests/test-convert-git.t Mon Aug 24 19:33:36 2015 -0700 +++ b/tests/test-convert-git.t Mon Aug 24 22:16:01 2015 -0700 @@ -652,6 +652,12 @@ $ hg -R git-repo6-hg tip -T "{file_dels}\n" .hgsub .hgsubstate +skip submodules in the conversion + + $ hg convert -q git-repo6 no-submodules --config convert.git.skipsubmodules=True + $ hg -R no-submodules manifest --all + .gitmodules-renamed + convert using a different remote prefix $ git init git-repo7 Initialized empty Git repository in $TESTTMP/git-repo7/.git/