Skip to content

Commit

Permalink
cli: don't autodiscover version when passed as arg
Browse files Browse the repository at this point in the history
* Closes #378.
  • Loading branch information
Diego Rodriguez committed Sep 7, 2020
1 parent 1eb7ad3 commit b7c8082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reana/reana_dev/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def git_create_release_commit(component, next_version=None):
return False

current_version = get_current_component_version_from_source_files(component)
if not current_version:
if not current_version and not next_version:
display_message(
f"Version cannot be autodiscovered from source files.", component
)
Expand Down

0 comments on commit b7c8082

Please sign in to comment.