diff options
| 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 |
| commit | eb1c9494a6751a31fcc784ebc13e947d22f663bf (patch) | |
| tree | 533ee00a1f99b5153f08c0de956f5342e543522b /reposync.py | |
| parent | d0cf3b7f427f36e2e2915ce626b2d8783b9eb5a0 (diff) | |
| download | RepoSync-eb1c9494a6751a31fcc784ebc13e947d22f663bf.tar RepoSync-eb1c9494a6751a31fcc784ebc13e947d22f663bf.tar.gz RepoSync-eb1c9494a6751a31fcc784ebc13e947d22f663bf.zip | |
Implemen pulling
Diffstat (limited to 'reposync.py')
| -rw-r--r-- | reposync.py | 4 |
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!") |
