mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-19 01:49:32 +08:00
Merge branch 'master' into feature
# Conflicts: # deploy/AidLux/requirements_generator.py # deploy/Windows/logger.py # deploy/docker/requirements_generator.py # deploy/installer.py # deploy/patch.py
This commit is contained in:
@@ -71,10 +71,13 @@ class GitManager(DeployConfig):
|
||||
|
||||
logger.hr('Pull Repository Branch', 1)
|
||||
# Remove git lock
|
||||
lock_file = './.git/index.lock'
|
||||
if os.path.exists(lock_file):
|
||||
logger.info(f'Lock file {lock_file} exists, removing')
|
||||
os.remove(lock_file)
|
||||
for lock_file in [
|
||||
'./.git/index.lock',
|
||||
'./.git/HEAD.lock'
|
||||
]:
|
||||
if os.path.exists(lock_file):
|
||||
logger.info(f'Lock file {lock_file} exists, removing')
|
||||
os.remove(lock_file)
|
||||
if keep_changes:
|
||||
if self.execute(f'"{self.git}" stash', allow_failure=True):
|
||||
self.execute(f'"{self.git}" pull --ff-only {source} {branch}')
|
||||
|
||||
Reference in New Issue
Block a user