forked from JOJ/Joint-Teapot
		
	feat: remove more git locks
This commit is contained in:
		
							parent
							
								
									16028d8195
								
							
						
					
					
						commit
						5d6668709e
					
				|  | @ -88,7 +88,14 @@ class Git: | ||||||
|         while retry_interval and auto_retry: |         while retry_interval and auto_retry: | ||||||
|             try: |             try: | ||||||
|                 if clean_git_lock: |                 if clean_git_lock: | ||||||
|                     lock_files = ["index.lock", "HEAD.lock", "fetch-pack.lock"] |                     lock_files = [ | ||||||
|  |                         "index.lock", | ||||||
|  |                         "HEAD.lock", | ||||||
|  |                         "fetch-pack.lock", | ||||||
|  |                         "logs/HEAD.lock", | ||||||
|  |                         "packed-refs.lock", | ||||||
|  |                         "config.lock", | ||||||
|  |                     ] | ||||||
|                     for lock_file in lock_files: |                     for lock_file in lock_files: | ||||||
|                         lock_path = os.path.join(repo_dir, ".git", lock_file) |                         lock_path = os.path.join(repo_dir, ".git", lock_file) | ||||||
|                         if os.path.exists(lock_path): |                         if os.path.exists(lock_path): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user