Skip to content

Commit

Permalink
Merge pull request #3143 from mirpedrol/fix-sync-dir
Browse files Browse the repository at this point in the history
fix syncing a pipeline from current directory
  • Loading branch information
mirpedrol authored Aug 27, 2024
2 parents 7d23535 + a1e2c15 commit b4acddc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
- Fix number of arguments for pipelines_create within the command_create function ([#3074](https://github.com/nf-core/tools/pull/3074))
- Add bot action to update textual snapshots and write bot documentation ([#3102](https://github.com/nf-core/tools/pull/3102))
- Update gitpod setup ([#3136](https://github.com/nf-core/tools/pull/3136))
- fix syncing a pipeline from current directory ([#3143](https://github.com/nf-core/tools/pull/3143))

## Version updates

Expand Down
2 changes: 2 additions & 0 deletions nf_core/pipelines/create/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def __init__(
self.config = CreateConfig(**config_yml["template"].model_dump())
else:
raise UserWarning("The template configuration was not provided in '.nf-core.yml'.")
# Update the output directory
self.config.outdir = outdir if outdir else Path().cwd()
except (FileNotFoundError, UserWarning):
log.debug("The '.nf-core.yml' configuration file was not found.")
elif (name and description and author) or (
Expand Down

0 comments on commit b4acddc

Please sign in to comment.