[sysadmin-bin] ensure git copies are mirrors



commit b6f010680277b3e110e94dd214c26d1b1e17736b
Author: Olav Vitters <olav vitters nl>
Date:   Mon May 16 10:13:15 2011 +0200

    ensure git copies are mirrors

 gnomeweb/update_sites.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomeweb/update_sites.py b/gnomeweb/update_sites.py
index 303daf8..2decd38 100755
--- a/gnomeweb/update_sites.py
+++ b/gnomeweb/update_sites.py
@@ -149,7 +149,7 @@ def update_module_real(moduleroot, url, branch='master', clone_only=False, verbo
             # Path does not exist.. so check it out of GIT
             if verbose:
                 print "Running 'git clone' to create " + moduleroot
-            git.clone(url, moduleroot)
+            git.clone('--mirror', url, moduleroot)
             os.chdir(moduleroot)
             if branch != 'master':
                 if verbose:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]