diff rhodecode/model/scm.py @ 2383:e576410f911d beta

Don't do git pull on remote repos since they are bare now, we need to use git fetch on them
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 04 Jun 2012 03:55:28 +0200
parents f3417f0d54b5
children 1bc579bcd67a 9492ab68331f
line wrap: on
line diff
--- a/rhodecode/model/scm.py	Mon Jun 04 02:56:09 2012 +0200
+++ b/rhodecode/model/scm.py	Mon Jun 04 03:55:28 2012 +0200
@@ -360,8 +360,10 @@
             # inject ui extra param to log this action via push logger
             for k, v in extras.items():
                 repo._repo.ui.setconfig('rhodecode_extras', k, v)
-
-            repo.pull(clone_uri)
+            if repo.alias == 'git':
+                repo.fetch(clone_uri)
+            else:
+                repo.pull(clone_uri)
             self.mark_for_invalidation(repo_name)
         except:
             log.error(traceback.format_exc())