diff options
Diffstat (limited to 'ssh-sync-repos.py')
-rwxr-xr-x | ssh-sync-repos.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ssh-sync-repos.py b/ssh-sync-repos.py index fd418e4..2cedac3 100755 --- a/ssh-sync-repos.py +++ b/ssh-sync-repos.py @@ -16,16 +16,16 @@ errs = 0 for repo in sorted(info["repos"]): try: if all(c not in repo for c in "*?[]"): - print - print repo + print("") + print(repo) pull = isdir(repo) if pull: check_call(("git", "fetch", "--all", "--prune"), cwd = repo) - check_call(("git", "pull"), cwd = repo) + check_call(("git", "merge"), cwd = repo) else: check_call(("git", "clone", "{}:{}.git".format(user, repo), repo)) except: - print "** Error", "pulling" if pull else "cloning", repo + print("** Error", "pulling" if pull else "cloning", repo) errs += 1 exit(errs) |