aboutsummaryrefslogtreecommitdiff
path: root/ssh-sync-repos.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2020-03-22 17:27:24 +0000
committerRob Austein <sra@hactrn.net>2020-03-22 17:27:24 +0000
commit6e7acd77707c16aa79cec22238ef944682d9184b (patch)
treedbfce74eca04e08a908631a1976194c26702d79b /ssh-sync-repos.py
parent34ecad1d04c6b3add8077315bac1f954002fb7da (diff)
Python 2 -> 3
Diffstat (limited to 'ssh-sync-repos.py')
-rwxr-xr-xssh-sync-repos.py8
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)