mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 03:21:29 +08:00
Fix: Remove master.lock or it will stuck git reset
This commit is contained in:
@@ -53,7 +53,8 @@ class GitManager(DeployConfig):
|
|||||||
# Remove git lock
|
# Remove git lock
|
||||||
for lock_file in [
|
for lock_file in [
|
||||||
'./.git/index.lock',
|
'./.git/index.lock',
|
||||||
'./.git/HEAD.lock'
|
'./.git/HEAD.lock',
|
||||||
|
'./.git/refs/heads/master.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')
|
||||||
|
|||||||
Reference in New Issue
Block a user