Skip to content
Snippets Groups Projects
Commit e34a3079 authored by Lorenz Hüdepohl's avatar Lorenz Hüdepohl
Browse files

Fix update checking, was not done only once per day

parent 9aeea986
No related branches found
No related tags found
No related merge requests found
Pipeline #69149 passed
......@@ -90,6 +90,7 @@ def check_for_update():
with open(rev_file, "r") as fd:
server_rev = fd.read().strip()
if server_rev != local_rev:
if call(["git", "--git-dir", git_dir, "merge-base", "--is-ancestor", server_rev, "HEAD"], stderr=DEVNULL) == 0:
# Server rev is older than ours. Check again
update_server_rev()
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment