[Cryptech-Commits] [user/sra/build-tools] 01/02: Fetch from all upstreams.

git at cryptech.is git at cryptech.is
Thu May 5 21:49:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository user/sra/build-tools.

commit 396c1a1013e3c66355d623c105c34a2f1f00de6c
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Thu Mar 3 14:08:42 2016 -0500

    Fetch from all upstreams.
---
 http-sync-repos.py | 1 +
 ssh-sync-repos.py  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/http-sync-repos.py b/http-sync-repos.py
index 97e3d7f..2a0ab04 100755
--- a/http-sync-repos.py
+++ b/http-sync-repos.py
@@ -73,6 +73,7 @@ try:
       print url
       try:
         if pull:
+          check_call(("git", "fetch", "--all"), cwd = repo)
           check_call(("git", "pull"), cwd = repo)
         else:
           check_call(("git", "clone", url, repo))
diff --git a/ssh-sync-repos.py b/ssh-sync-repos.py
index 803f65a..5d585a3 100755
--- a/ssh-sync-repos.py
+++ b/ssh-sync-repos.py
@@ -17,6 +17,7 @@ for repo in sorted(info["repos"]):
       print repo
       pull = os.path.isdir(repo)
       if pull:
+        subprocess.check_call(("git", "fetch", "--all"), cwd = repo)
 	subprocess.check_call(("git", "pull"), cwd = repo)
       else:
 	subprocess.check_call(("git", "clone", "%s:%s.git" % (user, repo), repo))



More information about the Commits mailing list