Created
November 10, 2010 08:43
-
-
Save mynameisrufus/670561 to your computer and use it in GitHub Desktop.
Staging branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# deploy from sha1 | |
IO.popen("git rev-parse HEAD").read.gsub(/\W/,'') | |
# deploy from branch name | |
IO.popen("git rev-parse --abbrev-ref HEAD").read.gsub(/\s/,'') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
set :branch, IO.popen("git rev-parse HEAD").read.gsub(/\W/,'')