c3po/mod/communicator.py
def git_checkout(git_branch=None, locale_root=None):
    """
    Checkouts branch to last commit
    :param git_branch: branch to checkout
    :param locale_root: locale folder path
    :return: tuple stdout, stderr of completed command
    """
    if git_branch is None:
        git_branch = settings.GIT_BRANCH
    if locale_root is None:
        locale_root = settings.LOCALE_ROOT

    proc = Popen('git checkout ' + git_branch + ' -- ' + locale_root,
                 shell=True, stdout=PIPE, stderr=PIPE)
    stdout, stderr = proc.communicate()

    return stdout, stderr
def git_checkout(git_branch=None, locale_root=None):
    """
    Checkouts branch to last commit
    :param git_branch: branch to checkout
    :param locale_root: locale folder path
    :return: tuple stdout, stderr of completed command
    """
    if git_branch is None:
        git_branch = settings.GIT_BRANCH
    if locale_root is None:
        locale_root = settings.LOCALE_ROOT

    proc = Popen('git checkout ' + git_branch + ' -- ' + locale_root,
                 shell=True, stdout=PIPE, stderr=PIPE)
    stdout, stderr = proc.communicate()

    return stdout, stderr
def git_checkout ( git_branch = None , locale_root = None ) : if git_branch is None : git_branch = settings . GIT_BRANCH if locale_root is None : locale_root = settings . LOCALE_ROOT proc = Popen ( 'git checkout ' + git_branch + ' -- ' + locale_root , shell = True , stdout = PIPE , stderr = PIPE ) stdout , stderr = proc . communicate ( ) return stdout , stderr
Checkouts branch to last commit
    :param git_branch: branch to checkout
    :param locale_root: locale folder path
    :return: tuple stdout, stderr of completed command
Checkouts branch to last commit : param git_branch : branch to checkout : param locale_root : locale folder path : return : tuple stdout stderr of completed command