From 33fd5dcd63a04b3db607121995d3bc2d852138a1 Mon Sep 17 00:00:00 2001 From: John Hampton Date: Sat, 9 Mar 2013 14:01:09 -0800 Subject: [PATCH] Fix broken auto_tagger example In auto_tagger.rake stage.revision returns both the sha and the named ref. This causes git update-ref to fail. Passing only the sha portion of stage.revision to create_and_push resolves the issue. --- examples/auto_tagger.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/auto_tagger.rake b/examples/auto_tagger.rake index e8ec29e..a255ca4 100644 --- a/examples/auto_tagger.rake +++ b/examples/auto_tagger.rake @@ -33,7 +33,7 @@ end task :after_deploy do each_heroku_app do |stage| - create_and_push(stage.name, stage.revision) + create_and_push(stage.name, stage.revision.split.first) end Rake::Task['autotag:list'].invoke end @@ -59,4 +59,4 @@ namespace :autotag do puts " ** %-12s %s" % [stage, log] end end -end \ No newline at end of file +end