[sysadmin-bin] update_sites.py: Correctly call git branch to create local branch



commit c4b7bf71f8ce4448d8b9229244d30e590901dbe2
Author: Olav Vitters <olav vitters nl>
Date:   Mon Feb 28 17:24:25 2011 +0100

    update_sites.py: Correctly call git branch to create local branch

 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 c9cbb8a..2a5aa37 100755
--- a/gnomeweb/update_sites.py
+++ b/gnomeweb/update_sites.py
@@ -214,7 +214,7 @@ def update_module(module, checkfile, moduleroot, url, owner, branch='master', ve
         if branch != 'master':
             try:
                 os.chdir(url)
-                git.branch(branch, 'origin/%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]