[sysadmin-bin] remove --mirror



commit e345b4d0f38aa367f74f9e19c8a5f506b552c474
Author: Olav Vitters <olav vitters nl>
Date:   Wed Mar 14 20:30:07 2012 +0100

    remove --mirror

 gnomeweb/update_sites.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomeweb/update_sites.py b/gnomeweb/update_sites.py
index 2decd38..a052578 100755
--- a/gnomeweb/update_sites.py
+++ b/gnomeweb/update_sites.py
@@ -149,12 +149,12 @@ 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('--mirror', url, moduleroot)
+            git.clone(url, moduleroot)
             os.chdir(moduleroot)
             if branch != 'master':
                 if verbose:
-                    print "Running git checkout -b", branch, "origin/" + branch
-                git.checkout('-b', branch, 'origin/' + branch)
+                    print "Running git checkout ", branch
+                git.checkout(branch)
         elif clone_only:
             pass
         else:
@@ -214,7 +214,7 @@ def update_module(module, checkfile, moduleroot, url, owner, branch='master', ve
         if branch != 'master' and not os.path.exists(os.path.join(moduleroot, ".git")):
             try:
                 os.chdir(url)
-                git.branch(branch, 'origin/%s' %branch)
+                git.branch(branch, 'origin/%s' % branch)
             except CalledProcessError, e:
                 # local branch probably exists already
                 pass



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