def update(branch): """ Pull in the latest code for the latest release. $ fab update:staging Only to be used for small fixed, typos etc.. """ current_release = base.releases(env.releases_path)[-1] with cd(_join(env.current, env.github_repo_name)): git.pull(branch)
def update(branch): """ Pull in the latest code for the latest release. $ fab update:staging Only to be used for small fixed, typos etc.. Runs git stash first to undo fabdir effects """ current_release = base.releases(env.releases_path)[-1] copy_settings_file(branch, release=current_release) with cd(_join(env.current, env.github_repo_name)): run("git stash") git.pull(branch)