3-start: fixed branch create

This commit is contained in:
rkiel
2017-09-29 21:51:26 -04:00
parent 4370448bd0
commit 318c8adb3f
2 changed files with 5 additions and 2 deletions

View File

@@ -42,8 +42,7 @@ module Release
validate_release_branch_does_not_exist(release_branch_from_version(new_version)) validate_release_branch_does_not_exist(release_branch_from_version(new_version))
git_local_branch_create release_branch_from_version(new_version), release_tag_from_version(version) git_local_branch_create release_branch_from_version(new_version), release_tag_from_version(version)
git_push_upstream(release_branch_from_version(new_version))
git_push release_branch_from_version(new_version)
end end
private private

View File

@@ -71,6 +71,10 @@ module Shared
run_cmd "git push origin --tags" run_cmd "git push origin --tags"
end end
def git_push_upstream (branch)
run_cmd "git push --set-upstream origin #{branch}"
end
def git_rebase (branch) def git_rebase (branch)
run_cmd "git rebase #{branch}" run_cmd "git rebase #{branch}"
end end