[sysadmin-bin] gnomeweb/update_sites.py: optimize how often branch is attempted to be made in master checkout
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] gnomeweb/update_sites.py: optimize how often branch is attempted to be made in master checkout
- Date: Mon, 7 Mar 2011 13:26:56 +0000 (UTC)
commit 740d14ae82982c2edb682b73915de21c81058707
Author: Olav Vitters <olav vitters nl>
Date: Mon Mar 7 14:26:50 2011 +0100
gnomeweb/update_sites.py: optimize how often branch is attempted to be made in master checkout
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 2a5aa37..6f85d9f 100755
--- a/gnomeweb/update_sites.py
+++ b/gnomeweb/update_sites.py
@@ -211,7 +211,7 @@ def update_module(module, checkfile, moduleroot, url, owner, branch='master', ve
# Update the original module first, then update this module
if not update_module_real(url, real_remote_url, verbose=verbose):
return False
- if branch != 'master':
+ if branch != 'master' and not os.path.exists(os.path.join(moduleroot, .git)):
try:
os.chdir(url)
git.branch(branch, 'origin/%s' %branch)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]