Fixed autoupdate

This commit is contained in:
Saifeddine ALOUI 2023-10-09 18:14:04 +02:00
parent fc6a4d6fea
commit b728135324

2
app.py
View File

@ -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}")