lib/appversion/appversion.rb in overview-0.0.2.1.40 vs lib/appversion/appversion.rb in overview-0.0.2.43

- old
+ new

@@ -47,14 +47,14 @@ clean_tag = '0.0.1' elsif latest_tag.empty? #not a git directory commit_count = 0 clean_tag = '0.0.1' else - commit_count_since_tag = Git.commit_count_since_tag(latest_tag) + commit_count = Git.commit_count_since_tag(latest_tag) clean_tag = Git.clean_tag end #Only increment version after production release, so that we retain a single version during beta and RCs - if commit_count_since_tag == 0 || Release.is_pre_release?(latest_tag) + if commit_count == 0 || Release.is_pre_release?(latest_tag) short_version = clean_tag else short_version = clean_tag.increment_version end \ No newline at end of file