Skip to content

Commit

Permalink
fix(reana-dev): delete extra files with git-submodule --update (reana…
Browse files Browse the repository at this point in the history
…hub#764)

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 reanahub#761.
  • Loading branch information
giuseppe-steduto committed Jan 18, 2024
1 parent 09c9210 commit e5680ce
Showing 1 changed file with 2 additions and 2 deletions.
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 e5680ce

Please sign in to comment.