Skip to content

Commit

Permalink
dev: delete extra file when running git-submodule --update
Browse files Browse the repository at this point in the history
Change the `git-submodule --update` command to delete from the `modules`
folder of the cluster components the files that are not present in the
original directories, reflecting a more accurate status of the shared
modules.

Closes #761.
  • Loading branch information
giuseppe-steduto committed Dec 7, 2023
1 parent fc70577 commit 8721571
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changes
=======

Version 0.9.3 (UNRELEASED)
--------------------------

- Developers:
- Changes `git-submodule --update` command to delete from the cluster `modules` folder the files that are not present anymore in the shared modules directories.

Version 0.9.2 (UNRELEASED)
--------------------------

Expand Down
4 changes: 2 additions & 2 deletions reana/reana_dev/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,12 +633,12 @@ def git_submodule(update=False, status=False, delete=False): # noqa: D301
if update:
for component in COMPONENTS_USING_SHARED_MODULE_COMMONS:
for cmd in [
"rsync -az ../reana-commons modules",
"rsync -az --delete ../reana-commons modules",
]:
run_command(cmd, component)
for component in COMPONENTS_USING_SHARED_MODULE_DB:
for cmd in [
"rsync -az ../reana-db modules",
"rsync -az --delete ../reana-db modules",
]:
run_command(cmd, component)
elif delete:
Expand Down

0 comments on commit 8721571

Please sign in to comment.