From e71fab475a0a9a6f5a4f887cba9e511ce5a2001b Mon Sep 17 00:00:00 2001 From: taynpg Date: Tue, 24 Dec 2024 21:10:20 +0800 Subject: [PATCH] update --- repo_list.txt | 74 +++++++++++++++++++++++++++++---------------------- run.py | 6 ++--- 2 files changed, 45 insertions(+), 35 deletions(-) diff --git a/repo_list.txt b/repo_list.txt index cae214e..8cc7123 100644 --- a/repo_list.txt +++ b/repo_list.txt @@ -1,32 +1,42 @@ -backup_repo -how-to-use -comprecpp -useopencv4 -OneLevelXmlOpr -SerialOpr -notegit -ImguiDemo -how-to-use -quickcpp -auxiliarytool -wxwidgetstudy -resource -nettrans -tinyserial -sxtwl_cpp -xv6-riscv -useopencv4 -mskip-list -cqm -ftptrans -nvim -xiaoyunserver -yx -packqt -muduo -open-cmd-here -swconfig -vsgene -yqm -dlldepend -sxcalendar +taynpg/tryreg +taynpg/how-to-use +taynpg/transm +taynpg/ofen +taynpg/resource +taynpg/wxqm +yun/yqm +taynpg/mail-cpp +taynpg/PackBinary +semi/GenAlarm +taynpg/cmt +yun/LinuxPack +taynpg/msync +yun/cqm +yun/yx +yun/nvim +yun/mail-send +yun/useopencv4 +semi/OneLevelXmlOpr +taynpg/swconfig +taynpg/wezterm +taynpg/SockGrab +taynpg/work +taynpg/script +taynpg/rsync-task +taynpg/nettrans +taynpg/codecreate +taynpg/backup_repo +taynpg/open-cmd-here +taynpg/packqt +taynpg/comprecpp +taynpg/wxwidgetstudy +taynpg/auxiliarytool +taynpg/vsgene +taynpg/dlldepend +taynpg/sxcalendar +taynpg/cpp_util +taynpg/muduo +taynpg/mskip-list +taynpg/ftptrans +taynpg/sxtwl_cpp +taynpg/SerialOpr \ No newline at end of file diff --git a/run.py b/run.py index 5e3dd26..49daf27 100644 --- a/run.py +++ b/run.py @@ -1,6 +1,6 @@ import os -url = "https://gitee.com/sinxmiao/" +url = "https://www.sinxmiao.cn/" backup_name = "gitea_backup" current_path = os.getcwd() @@ -27,9 +27,9 @@ for repo in content: purpose_dir = os.path.join(backup_path, repo_name) if not os.path.exists(purpose_dir): os.makedirs(purpose_dir) - cmd = "git clone " + url + repo_name + ".git" + cmd = "git clone --recursive " + url + repo_name + ".git" cmd = cmd + " \"" + purpose_dir + "\"" else: - cmd = "cd /d \"" + purpose_dir + "\" && git pull" + cmd = "cd /d \"" + purpose_dir + "\" && git pull && git submodule update" print(cmd) os.system(cmd)