lib/hu/deploy.rb in hu-1.2.1 vs lib/hu/deploy.rb in hu-1.2.2

- old
+ new

@@ -117,10 +117,12 @@ unless git_revisions[:release] == git_revisions[stag_app_name] or !release_branch_exists menu.choice "Push release/#{release_tag} to #{stag_app_name}", :push_to_staging end if release_branch_exists menu.choice "Delete release/#{release_tag} and start new release from develop", :retag - menu.choice "Finish release (merge, tag and final stage)", :finish_release + if git_revisions[:release] == git_revisions[stag_app_name] + menu.choice "Finish release (merge, tag and final stage)", :finish_release + end elsif git_revisions[prod_app_name] != git_revisions[stag_app_name] menu.choice "DEPLOY (promote #{stag_app_name} to #{prod_app_name})", :DEPLOY end end