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