Skip to content

Commit fb47f5c

Browse files
committed
Add repo itself as submodule
1 parent 2de6a7d commit fb47f5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readthedocs/rtd_tests/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ def make_test_git():
3737
assert 'Please tell me who you are.' not in output.decode()
3838
log.info(check_output(['git', 'commit', '-m"init"'], env=env))
3939
log.info(check_output(['git', 'checkout', '-b', 'submodule'], env=env))
40+
# Add repo itself as submodule
41+
log.info(check_output(['git', 'submodule', 'add', '-b', 'master', './', 'submodule'], env=env))
42+
log.info(check_output(['git', 'add', '.'], env=env))
43+
log.info(check_output(['git', 'commit', '-m"Add submodule"'], env=env))
4044
chdir(path)
4145
return directory
4246

0 commit comments

Comments
 (0)