comparison 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
comparison
equal deleted inserted replaced
2382:034e4fe1ebb2 2383:e576410f911d
358 } 358 }
359 359
360 # inject ui extra param to log this action via push logger 360 # inject ui extra param to log this action via push logger
361 for k, v in extras.items(): 361 for k, v in extras.items():
362 repo._repo.ui.setconfig('rhodecode_extras', k, v) 362 repo._repo.ui.setconfig('rhodecode_extras', k, v)
363 363 if repo.alias == 'git':
364 repo.pull(clone_uri) 364 repo.fetch(clone_uri)
365 else:
366 repo.pull(clone_uri)
365 self.mark_for_invalidation(repo_name) 367 self.mark_for_invalidation(repo_name)
366 except: 368 except:
367 log.error(traceback.format_exc()) 369 log.error(traceback.format_exc())
368 raise 370 raise
369 371