diff options
Diffstat (limited to 'https-sync-repos.py')
-rwxr-xr-x | https-sync-repos.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/https-sync-repos.py b/https-sync-repos.py index 4b4c735..13766e3 100755 --- a/https-sync-repos.py +++ b/https-sync-repos.py @@ -23,16 +23,16 @@ for elt in ElementTree(file = urlopen(trac_page)).iter("{http://www.w3.org/1999/ url = elt.text repo = url[len(head):-len(tail)] pull = isdir(repo) - print - print url + print("") + print(url) try: 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", url, repo)) except: - print "** Error", "pulling" if pull else "cloning", repo + print("** Error", "pulling" if pull else "cloning", repo) errs += 1 exit(errs) |