1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-22 17:33:45 +08:00

Fix: Remove .git/HEAD.lock

This commit is contained in:
LmeSzinc
2023-04-19 22:11:49 +08:00
parent 7a16b71e08
commit 65cfec9821

View File

@@ -51,7 +51,10 @@ class GitManager(DeployConfig):
logger.hr('Pull Repository Branch', 1) logger.hr('Pull Repository Branch', 1)
# Remove git lock # Remove git lock
lock_file = './.git/index.lock' for lock_file in [
'./.git/index.lock',
'./.git/HEAD.lock'
]:
if os.path.exists(lock_file): if os.path.exists(lock_file):
logger.info(f'Lock file {lock_file} exists, removing') logger.info(f'Lock file {lock_file} exists, removing')
os.remove(lock_file) os.remove(lock_file)