Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Unbreak current branch detection #14

Merged
merged 1 commit into from

2 participants

@nistude

Without this diff, capistrano writes too many characters into the BRANCH file:

* executing "echo 'my_branch\\\n' > /home/hlp/helpster_www/current/BRANCH"

With this diff, extraneous characters are removed and "branch == current_branch" works properly.

@lautis lautis merged commit fa69d9a into flowdock:master

1 check passed

Details default The Travis build passed
@lautis

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 14, 2012
  1. @nistude

    unbreak branch detection

    nistude authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/flowdock/capistrano.rb
View
2  lib/flowdock/capistrano.rb
@@ -12,7 +12,7 @@
task :save_deployed_branch do
begin
- run "echo '#{source.head}' > #{current_path}/BRANCH"
+ run "echo '#{source.head.chomp}' > #{current_path}/BRANCH"
rescue => e
puts "Flowdock: error in saving deployed branch information: #{e.to_s}"
end
Something went wrong with that request. Please try again.