parameters: (remote='origin')
docstring: Checkout the latest source.
docstring_summary: Checkout the latest source.
docstring_tokens: Checkout the latest source .
function: def checkout_latest(remote='origin'):
      """
      Checkout the latest source.
      """
      require('settings', provided_by=[production, staging])
      require('branch', provided_by=[stable, master, branch])
  
      run('cd %s; git fetch %s' % (app_config.SERVER_REPOSITORY_PATH, remote))
      run('cd %s; git checkout %s; git pull %s %s' % (app_config.SERVER_REPOSITORY_PATH, env.branch, remote, env.branch))
function_tokens: def checkout_latest ( remote = 'origin' ) : require ( 'settings' , provided_by = [ production , staging ] ) require ( 'branch' , provided_by = [ stable , master , branch ] ) run ( 'cd %s; git fetch %s' % ( app_config . SERVER_REPOSITORY_PATH , remote ) ) run ( 'cd %s; git checkout %s; git pull %s %s' % ( app_config . SERVER_REPOSITORY_PATH , env . branch , remote , env . branch ) )