Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commiteb1c9494a6751a31fcc784ebc13e947d22f663bf (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-05-20 11:06:25 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-05-20 11:06:25 +0300
Files533ee00a1f99b5153f08c0de956f5342e543522b
RepoSync-eb1c9494a6751a31fcc784ebc13e947d22f663bf.tar
RepoSync-eb1c9494a6751a31fcc784ebc13e947d22f663bf.tar.gz
RepoSync-eb1c9494a6751a31fcc784ebc13e947d22f663bf.zip
Parentd0cf3b7f427f36e2e2915ce626b2d8783b9eb5a0 (diff)
Implemen pulling
1 files changed, 2 insertions, 2 deletions
-rw-r--r--reposync.py4
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!")