aboutsummaryrefslogtreecommitdiff
path: root/reposync.py
diff options
context:
space:
mode:
Diffstat (limited to 'reposync.py')
-rw-r--r--reposync.py4
1 files 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!")