lib/socialcast-git-extensions/git.rb in socialcast-git-extensions-2.3.8 vs lib/socialcast-git-extensions/git.rb in socialcast-git-extensions-2.3.9
- old
+ new
@@ -34,10 +34,10 @@
run_cmd "git push origin :#{branch}" rescue nil
run_cmd "git checkout -b #{branch}"
run_cmd "grb publish #{branch}"
run_cmd "git checkout #{head_branch}"
- share "#worklog resetting #{branch} branch to #{head_branch} #scgitx\n\nthe following branches were affected:\n#{removed_branches.collect {|b| '* ' + b + "\n" } }" if options[:share]
+ share "#worklog resetting #{branch} branch to #{head_branch} #scgitx\n\nthe following branches were affected:\n#{removed_branches.map{|b| '* ' + b}.join("\n") }" if options[:share]
end
def integrate(branch, destination_branch = 'staging')
HighLine.say "integrating <%= color('#{branch}', :green) %> into <%= color('#{destination_branch}', :green) %>"
run_cmd "git remote prune origin"