]> git.ipfire.org Git - thirdparty/git.git/commit
t7400: test failure to add submodule in tracked path
authorAtharva Raykar <raykar.ath@gmail.com>
Tue, 6 Jul 2021 18:19:34 +0000 (23:49 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Jul 2021 18:00:01 +0000 (11:00 -0700)
commit84069fcc140480fb76dc204ebce7819c2c87ec7c
tree815a8ab832fe865ebda90a2a7e5f00e88f08a757
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb
t7400: test failure to add submodule in tracked path

Add a test to ensure failure on adding a submodule to a directory with
tracked contents in the index.

As we are going to refactor and port to C some parts of `git submodule
add`, let's add a test to help ensure no regression is introduced.

Signed-off-by: Atharva Raykar <raykar.ath@gmail.com>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Based-on-patch-by: Shourya Shukla <periperidip@gmail.com>
Mentored-by: Shourya Shukla <periperidip@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7400-submodule-basic.sh