Browse files

Tag if there are no changes.

  • Loading branch information...
1 parent 116a5bf commit 51e27137456f32bc66a41e6ff9f9341b82a58dc2 @lazyatom committed Jun 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Rakefile
View
2 Rakefile
@@ -82,7 +82,7 @@ end
desc 'Tag the repository in git with gem version number'
task :tag do
changed_files = `git diff --cached --name-only`.split("\n") + `git diff --name-only`.split("\n")
- if changed_files == ['Rakefile']
+ if changed_files.empty? || changed_files == ['Rakefile']
Rake::Task["package"].invoke
if `git tag`.split("\n").include?("v#{spec.version}")

0 comments on commit 51e2713

Please sign in to comment.