Skip to content

Instantly share code, notes, and snippets.

@mynameisrufus
Created November 10, 2010 08:43
Show Gist options
  • Save mynameisrufus/670561 to your computer and use it in GitHub Desktop.
Save mynameisrufus/670561 to your computer and use it in GitHub Desktop.
Staging branch
# 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/,'')
@mynameisrufus
Copy link
Author

set :branch, IO.popen("git rev-parse HEAD").read.gsub(/\W/,'')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment