From 9261f8cb77a9f7fe96efb986a1769dbd74c77ae8 Mon Sep 17 00:00:00 2001 From: hanhh Date: Thu, 20 May 2021 18:57:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dql=20update=20=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index af9523b9..844a5279 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -166,8 +166,7 @@ update_repo() { local repo_path="${dir_repo}/${author}_${repo}" if [ -d ${repo_path}/.git ]; then reset_romote_url ${repo_path} ${url} - git fetch - git reset --hard origin/master >/dev/null 2>&1 + git_pull_scripts ${repo_path} else git_clone_scripts ${url} ${repo_path} fi @@ -264,7 +263,8 @@ update_qinglong() { local url="https://ghproxy.com/https://github.com/whyour/qinglong-static.git" if [ -d ${ql_static_repo}/.git ]; then reset_romote_url ${ql_static_repo} ${url} - git_pull_scripts ${ql_static_repo} + git fetch + git reset --hard origin/master >/dev/null 2>&1 else git_clone_scripts ${url} ${ql_static_repo} fi