remove git dev
This commit is contained in:
parent
f8a064565a
commit
ca58660376
1 changed files with 3 additions and 3 deletions
|
@ -50,9 +50,9 @@ async def get_git_commits_ahead_behind(branch: str, remote: str) -> tuple[int, i
|
|||
return commits_ahead, commits_behind
|
||||
|
||||
|
||||
async def get_git_update(dev_status: bool, branch, remote) -> bool:
|
||||
async def get_git_update(branch, remote) -> bool:
|
||||
commits_behind, _ = await get_git_commits_ahead_behind(branch, remote)
|
||||
if not dev_status and commits_behind > 0:
|
||||
if commits_behind > 0:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
@ -62,7 +62,7 @@ async def get_git_status() -> dict:
|
|||
output["commit_id"] = await get_git_latest_commit_id()
|
||||
output["branch"] = await get_git_branch()
|
||||
output["remote"] = await get_git_remote()
|
||||
output['update'] = await get_git_update(output['dev'], output['branch'], output['remote'])
|
||||
output['update'] = await get_git_update(output['branch'], output['remote'])
|
||||
return output
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue