tasks/mina/git.rb in mina-1.0.0.beta1 vs tasks/mina/git.rb in mina-1.0.0.beta2

- old
+ new

@@ -1,8 +1,9 @@ require 'mina/default' set :branch, 'master' +set :remove_git_dir, true namespace :git do desc 'Clones the Git repository to the release path.' task clone: :environment do ensure!(:repository) @@ -24,10 +25,12 @@ end comment 'Using this git commit' command 'git rev-parse HEAD > .mina_git_revision' command "git --no-pager log --format='%aN (%h):%n> %s' -n 1" - command 'rm -rf .git' + if fetch(:remove_git_dir) + command 'rm -rf .git' + end end task revision: :environment do ensure!(:deploy_to) command "cat #{fetch(:current_path)}/.mina_git_revision"