Skip to content

Instantly share code, notes, and snippets.

@runcoderun
Created October 31, 2008 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runcoderun/21343 to your computer and use it in GitHub Desktop.
Save runcoderun/21343 to your computer and use it in GitHub Desktop.
set :scm, :git
set(:current_branch) { `git branch`.match(/\* (\S+)\s/m)[1] || raise("Couldn't determine current branch") }
set :branch, defer { current_branch }
set :deploy_via, :remote_cache
set :repository_cache, "git_cache"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment