tasks/mina/git.rb in mina-1.2.3 vs tasks/mina/git.rb in mina-1.2.4

- old
+ new

@@ -25,11 +25,12 @@ fi && echo "-----> Using git branch '#{fetch(:branch)}'" && #{echo_cmd %[git clone "#{fetch(:deploy_to)}/scm" . --recursive --branch "#{fetch(:branch)}"]} }, quiet: true end - + comment %{Updating submodules} + command %{git submodule update} 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} if fetch(:remove_git_dir) command %{rm -rf .git} @@ -43,10 +44,10 @@ end desc 'Ensures local repository is pushed to remote' task :ensure_pushed do run :local do - comment %{Ensuring everyting is pushed to git} + comment %{Ensuring everything is pushed to git} command %{ if [ $(git log #{fetch(:remote)}/#{fetch(:branch)}..#{fetch(:branch)} | wc -l) -ne 0 ]; then echo "! #{fetch(:git_not_pushed_message)}" exit 1 fi