Skip to content

Instantly share code, notes, and snippets.

@devinfoley
Created October 6, 2011 15:40
Show Gist options
  • Save devinfoley/1267725 to your computer and use it in GitHub Desktop.
Save devinfoley/1267725 to your computer and use it in GitHub Desktop.
Set git commit log to :release_notes in Capistrano
namespace :show do
desc "Show some internal Cap-Fu: What's mah NAYM?!?"
task :me do
set :task_name, task_call_frames.first.task.fully_qualified_name
local_sha = `git rev-parse --verify HEAD`
remote_sha = capture("cd #{current_path}; git rev-parse --verify HEAD")
git_log = `git log #{remote_sha.strip}..#{local_sha.strip}`
puts git_log
set :release_notes, git_log
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment