Skip to content

Commit 933c6ef

Browse files
committed
【完善】:更新 submodule 时的提示信息
1 parent 0537de7 commit 933c6ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmds/cmd_package.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,9 @@ def and_list(aList, bList):
405405
def update_submodule(repo_path):
406406
"""Update the submodules in the repository."""
407407

408-
print("Please wait a few seconds in order to update the submodule.")
409-
410408
submod_path = os.path.join(repo_path, '.gitmodules')
411409
if os.path.isfile(submod_path):
410+
print("Please wait a few seconds in order to update the submodule.")
412411
cmd = 'git submodule init -q'
413412
execute_command(cmd, cwd=repo_path)
414413
cmd = 'git submodule update'

0 commit comments

Comments
 (0)