From 878a9f8c0d3e7fcd1651723a998ac194d07a56a8 Mon Sep 17 00:00:00 2001 From: helloplhm-qwq Date: Wed, 31 Jan 2024 23:43:02 +0800 Subject: [PATCH] =?UTF-8?q?build:=20[release]=20=E6=88=91=E6=9D=A5?= =?UTF-8?q?=E5=88=B7=E7=89=88=E6=9C=AC=E5=8F=B7=E8=BE=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 43ece4e..ec12a6c 100644 --- a/build.py +++ b/build.py @@ -13,8 +13,8 @@ def get_specified_tag(index): return subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n")[index] def get_changelog(): - res = subprocess.check_output( - ['git', 'log', f'{get_latest_tag()}..HEAD', '--pretty=format:"%h %s"']).decode('utf-8').strip() + cmd = ['git', 'log', f'{get_latest_tag()}..HEAD', '--pretty=format:"%h %s"'] + res = subprocess.check_output(cmd).decode('utf-8').strip() res = res.split('\n') featMsg = [] fixMsg = []