[jhbuild] [git] Move the quiet option to its point of use



commit 4fabce20ef042f2dcb879d280d04ce8167a20449
Author: Dirk Wallenstein <halsmit t-online de>
Date:   Mon May 17 11:20:43 2010 +0200

    [git] Move the quiet option to its point of use

 jhbuild/versioncontrol/git.py |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/jhbuild/versioncontrol/git.py b/jhbuild/versioncontrol/git.py
index 7f54142..2957826 100644
--- a/jhbuild/versioncontrol/git.py
+++ b/jhbuild/versioncontrol/git.py
@@ -374,11 +374,6 @@ class GitBranch(Branch):
                 raise CommandError(_('Failed to update module as it switched to git (you should check for changes then remove the directory).'))
             raise CommandError(_('Failed to update module (missing .git) (you should check for changes then remove the directory).'))
 
-        if self.config.quiet_mode:
-            quiet = ['-q']
-        else:
-            quiet = []
-
         if update_mirror:
             self.update_dvcs_mirror(buildscript)
 
@@ -387,6 +382,7 @@ class GitBranch(Branch):
         self._pull_current_branch(buildscript)
 
         if self.config.sticky_date:
+            quiet = ['-q'] if self.config.quiet_mode else []
             commit = self._get_commit_from_date()
             branch = 'jhbuild-date-branch'
             branch_cmd = ['git', 'checkout'] + quiet + [branch]



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