tests/test-subrepo-git.t
branchstable
changeset 34987 846942fd6d15
parent 34986 828cf35f1de6
child 34989 1a314176da9c
--- a/tests/test-subrepo-git.t	Sun Nov 05 21:48:58 2017 +0900
+++ b/tests/test-subrepo-git.t	Sun Nov 05 21:51:42 2017 +0900
@@ -41,7 +41,23 @@
   $ echo 's = [git]../gitroot' > .hgsub
   $ git clone -q ../gitroot s
   $ hg add .hgsub
+
+git subrepo is disabled by default
+
   $ hg commit -m 'new git subrepo'
+  abort: subrepo type git not allowed
+  (see 'hg help config.subrepos' for details)
+  [255]
+
+so enable it
+
+  $ cat >> $HGRCPATH <<EOF
+  > [subrepos]
+  > allowed = hg, git
+  > EOF
+
+  $ hg commit -m 'new git subrepo'
+
   $ hg debugsub
   path s
    source   ../gitroot