Adjust the release script to an older Git client

This commit is contained in:
j2blake 2013-10-18 15:04:43 -04:00
parent 02280e6171
commit 0cc3817216

View file

@ -24,7 +24,7 @@ def merge_branch_to_master(branch, tag, message, repo_path)
"git merge --no-ff -Xtheirs #{branch}",
"git tag -a -f #{tag} -m '#{message}'"
]
cmds.insert(0, "git branch master origin/master") if `git branch --list master`.strip.empty?
cmds.insert(0, "git branch master origin/master") unless branch_exists?(path, "master")
approve_and_execute(cmds, "in #{path}")
end
end