Skip to content

Commit

Permalink
Improved git tag handling
Browse files Browse the repository at this point in the history
  • Loading branch information
philly-mac committed Feb 13, 2013
1 parent 71353f8 commit c5d7018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/deploy/methods/git.rb
Expand Up @@ -61,7 +61,7 @@ def self.included(base)

cmd = []
cmd << "git checkout #{from_branch}" if starting_branch != from_branch
cmd << "git tag -a release-#{Time.now.utc.strftime('%Y_%m_%d-%H_%M_%S')} -m \"#{ENV['TAG_MESSAGE']}\""
cmd << "git tag -a release-#{Time.now.utc.strftime('%Y-%m-%d_%H-%M-%S')} -m \"#{ENV['TAG_MESSAGE']}\""
cmd << "git push"
cmd << "git push --tags"

Expand All @@ -78,7 +78,7 @@ def self.included(base)
end

remote "cd #{dep_config.app_root}"
remote 'git fetch'
remote 'git fetch -f -t'
remote "git checkout -f #{ENV['GIT_TAG']}"
end
end
Expand Down

0 comments on commit c5d7018

Please sign in to comment.