mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-21 01:31:20 +00:00
Fixed autoupdate
This commit is contained in:
parent
fc6a4d6fea
commit
b728135324
2
app.py
2
app.py
@ -116,7 +116,7 @@ def check_update_(branch_name="main"):
|
||||
remote_commit = repo.remotes.origin.refs[branch_name].commit
|
||||
|
||||
# Check if the local branch is behind the remote branch
|
||||
is_behind = repo.is_ancestor(local_commit, remote_commit)
|
||||
is_behind = repo.is_ancestor(local_commit, remote_commit) and local_commit!= remote_commit
|
||||
|
||||
ASCIIColors.yellow(f"update availability: {not is_behind}")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user