mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 10:27:21 +08:00
Fix: Failed to update if GitExecutable contains a space
This commit is contained in:
@@ -95,7 +95,7 @@ class Updater(Config, GitManager, PipManager):
|
|||||||
ph = 'h' if short_sha1 else 'H'
|
ph = 'h' if short_sha1 else 'H'
|
||||||
|
|
||||||
log = self.execute_output(
|
log = self.execute_output(
|
||||||
f'{self.git} log {revision} --pretty=format:"%{ph}---%an---%ad---%s" --date=iso -{n}')
|
f'"{self.git}" log {revision} --pretty=format:"%{ph}---%an---%ad---%s" --date=iso -{n}')
|
||||||
|
|
||||||
if not log:
|
if not log:
|
||||||
return None, None, None, None
|
return None, None, None, None
|
||||||
@@ -119,7 +119,7 @@ class Updater(Config, GitManager, PipManager):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
log = self.execute_output(
|
log = self.execute_output(
|
||||||
f'{self.git} log --not --remotes={source}/* -1 --oneline')
|
f'"{self.git}" log --not --remotes={source}/* -1 --oneline')
|
||||||
if log:
|
if log:
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Cannot find local commit {log.split()[0]} in upstream, skip update")
|
f"Cannot find local commit {log.split()[0]} in upstream, skip update")
|
||||||
|
|||||||
Reference in New Issue
Block a user