[jhbuild] Run git remote update origin when updating git repositories



commit 1eedc423f75c605224b430579e4c303292199507
Author: Gustavo Noronha Silva <gns gnome org>
Date:   Tue Jan 17 14:43:36 2012 -0200

    Run git remote update origin when updating git repositories
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668107

 jhbuild/versioncontrol/git.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/versioncontrol/git.py b/jhbuild/versioncontrol/git.py
index 11c01e4..87d1d09 100644
--- a/jhbuild/versioncontrol/git.py
+++ b/jhbuild/versioncontrol/git.py
@@ -423,6 +423,9 @@ class GitBranch(Branch):
         buildscript.execute(['git', 'remote', 'set-url', 'origin',
                 self.module], **git_extra_args)
 
+        buildscript.execute(['git', 'remote', 'update', 'origin'],
+                **git_extra_args)
+
         if update_mirror:
             self.update_dvcs_mirror(buildscript)
 



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