From eb1c9494a6751a31fcc784ebc13e947d22f663bf Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 20 May 2021 11:06:25 +0300 Subject: Implemen pulling --- reposync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reposync.py b/reposync.py index c78e8ea..7cf156a 100644 --- a/reposync.py +++ b/reposync.py @@ -9,9 +9,9 @@ if not repo.bare: # Thanks to https://stackoverflow.com/a/65535263/12036073 if list(repo.iter_commits(f'{branch}..{branch}@{{u}}')): print(now + "Remote changes detected, pulling...") - # logic + repo.remotes.origin.pull() else: print(now + "Up to date") else: - print("Error") + print("Repository must not be bare!") -- cgit v1.2.3