feat: remove more locks

This commit is contained in:
张泊明518370910136 2025-10-08 20:29:43 -07:00
parent e160023cbf
commit 9fc7649696
Signed by untrusted user: 张泊明518370910136
GPG Key ID: CA088E6D9284F870

View File

@ -100,13 +100,17 @@ class Git:
"index.lock",
"HEAD.lock",
"fetch-pack.lock",
"logs/HEAD.lock",
"packed-refs.lock",
"config.lock",
f"refs/heads/{current_branch}.lock",
f"refs/remotes/origin/{current_branch}.lock",
f"refs/heads/{checkout_dest}.lock",
f"refs/remotes/origin/{checkout_dest}.lock",
"logs/HEAD.lock",
f"logs/refs/heads/{current_branch}.lock",
f"logs/refs/remotes/origin/{current_branch}.lock",
f"logs/refs/heads/{checkout_dest}.lock",
f"logs/refs/remotes/origin/{checkout_dest}.lock",
]
for lock_file in lock_files:
lock_path = os.path.join(repo_dir, ".git", lock_file)