Merge branch 'jk/warn-add-gitlink'
authorJunio C Hamano <gitster@pobox.com>
Sat, 24 Jun 2017 21:28:41 +0000 (14:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 24 Jun 2017 21:28:41 +0000 (14:28 -0700)
commitcda4ba30b1d6257524b9412ed4d7c44645fe0369
treec02dddf0db7583b8a3f50dc08c6b375103f97ed8
parentf31d23a399d557d687266b4375a0436f920cc051
parent17f2f88c9c9e0015cba6d962dc6d9e2329ddf713
Merge branch 'jk/warn-add-gitlink'

Using "git add d/i/r" when d/i/r is the top of the working tree of
a separate repository would create a gitlink in the index, which
would appear as a not-quite-initialized submodule to others.  We
learned to give warnings when this happens.

* jk/warn-add-gitlink:
  t: move "git add submodule" into test blocks
  add: warn when adding an embedded repository
Documentation/config.txt
advice.c
builtin/add.c