19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/jeweler/commands/release_to_git.rb', line 19
def run
unless clean_staging_area?
system "git status"
raise "Unclean staging area! Be sure to commit or .gitignore everything first. See `git status` above."
end
branch = repo.current_branch
output.puts "Pushing #{branch} to origin"
repo.push('origin', branch)
if release_not_tagged?
output.puts "Tagging #{release_tag}"
repo.add_tag(release_tag)
output.puts "Pushing #{release_tag} to origin"
repo.push('origin', release_tag)
end
end
|