3-start: fixed branch create
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user