Loading src/saref_pypeline/pipeline.py +4 −0 Changes for src/saref_pypeline/pipeline.py: 4 added lines, 0 removed lines. Original line number Original line Diff line number Diff line Loading @@ -500,6 +500,10 @@ class SAREFPipeline: project.versions = [working_directory_version] project.versions = [working_directory_version] return working_directory_version return working_directory_version if project.repo.head.is_detached: # Extract the version from the ontology metadata working_directory_version = self.guess_version(project) else: # Else, try to extract the version from the branch name # Else, try to extract the version from the branch name branch_name = project.repo.active_branch.name branch_name = project.repo.active_branch.name match = REGEX_BRANCH_NAME.match(branch_name) match = REGEX_BRANCH_NAME.match(branch_name) Loading Loading
src/saref_pypeline/pipeline.py +4 −0 Changes for src/saref_pypeline/pipeline.py: 4 added lines, 0 removed lines. Original line number Original line Diff line number Diff line Loading @@ -500,6 +500,10 @@ class SAREFPipeline: project.versions = [working_directory_version] project.versions = [working_directory_version] return working_directory_version return working_directory_version if project.repo.head.is_detached: # Extract the version from the ontology metadata working_directory_version = self.guess_version(project) else: # Else, try to extract the version from the branch name # Else, try to extract the version from the branch name branch_name = project.repo.active_branch.name branch_name = project.repo.active_branch.name match = REGEX_BRANCH_NAME.match(branch_name) match = REGEX_BRANCH_NAME.match(branch_name) Loading