[Bps-public-commit] App-Changeloggr branch, master, updated. 1632e7d7e8febada3b8ea7b57e0029f829f4cc9f

sartak at bestpractical.com sartak at bestpractical.com
Wed May 20 19:46:04 EDT 2009


The branch, master has been updated
       via  1632e7d7e8febada3b8ea7b57e0029f829f4cc9f (commit)
      from  a5f97d4459fb6950ffa03fe87e573ff462c07600 (commit)

Summary of changes:
 lib/App/Changeloggr/Action/CreateVote.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 1632e7d7e8febada3b8ea7b57e0029f829f4cc9f
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed May 20 19:45:52 2009 -0400

    Only add a new tag if the changelog is incremental

diff --git a/lib/App/Changeloggr/Action/CreateVote.pm b/lib/App/Changeloggr/Action/CreateVote.pm
index abd9b81..d673164 100644
--- a/lib/App/Changeloggr/Action/CreateVote.pm
+++ b/lib/App/Changeloggr/Action/CreateVote.pm
@@ -19,7 +19,7 @@ sub validate_tag {
 
     # if the admin wants incremental tag creation for this project, then
     # add this tag before voting
-    if (!$changelog->has_tag($tag)) {
+    if (!$changelog->has_tag($tag) && $changelog->incremental_tags) {
         my ($ok, $msg) = $changelog->add_tag($tag);
         return $self->validation_ok('tag') if $ok;
         return $self->validation_error(tag => $msg);

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list