Skip to content

Commit c0eb4d6

Browse files
authored
Update common submodule to the main top (#37)
* Update common submodule to the `main` top Signed-off-by: PeganovAnton <[email protected]> * Add --recursive option to 'git submodule update' Signed-off-by: PeganovAnton <[email protected]> --------- Signed-off-by: PeganovAnton <[email protected]>
1 parent 937360d commit c0eb4d6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ case and deliver real-time performance. This repo provides performant client exa
3838
git clone https://github.com/nvidia-riva/python-clients.git
3939
cd python-clients
4040
git submodule init
41-
git submodule update
41+
git submodule update --remote --recursive
4242
pip install -r requirements.txt
4343
python3 setup.py bdist_wheel
4444
pip install --force-reinstall dist/*.whl

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def run(self):
6969
# # A code which may be improved in future to replace a commented block above.
7070
# # `git submodule` commands are preferable compared to `git clone`.
7171
#
72-
# subprocess_args = ['git', 'submodule', 'update', '--init']
72+
# subprocess_args = ['git', 'submodule', 'update', '--init', '--remote', '--recursive']
7373
# completed_git_submodule_process = sp.run(subprocess_args)
7474
# if completed_git_submodule_process.returncode > 0:
7575
# raise RuntimeError(
@@ -84,9 +84,9 @@ def run(self):
8484
if not protos:
8585
raise ValueError(
8686
f"No proto files matching glob {glob_dir} were found. If {setup_py_dir / 'common'} directory is "
87-
f"empty, you may try to fix it by calling `git submodule update --init`. If you unintentionally "
88-
f"removed {setup_py_dir / 'common'} content, then you may try `cd {setup_py_dir / 'common'} && "
89-
f"git stash && cd -`."
87+
f"empty, you may try to fix it by calling `git submodule update --remote --init --recursive`. "
88+
f"If you unintentionally removed {setup_py_dir / 'common'} content, then you may try "
89+
f"`cd {setup_py_dir / 'common'} && git stash && cd -`."
9090
)
9191
for proto in glob(glob_dir):
9292
print(proto)

0 commit comments

Comments
 (0)