Skip to content

Commit a987bcd

Browse files
committed
【修复】:更新最新版本那软件包时,子模块不会更新的 bug
1 parent e048887 commit a987bcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmds/cmd_package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ def update_submodule(repo_path):
442442
cmd = 'git submodule init -q'
443443
execute_command(cmd, cwd=repo_path)
444444
cmd = 'git submodule update'
445-
if not os.system(cmd):
446-
print("Submodule update successful")
445+
execute_command(cmd, cwd=repo_path)
446+
print("Submodule update successful")
447447

448448

449449
def get_pkg_folder_by_orign_path(orign_path, version):

0 commit comments

Comments
 (0)