Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug #15 to avoid fail when repo exists #17

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

marcus-grant
Copy link
Owner

  • Let A = repo exists, B = git module forcing
  • There's a case of A and not B, which should skip the task
  • If the task isn't skipped,
    it will try to clone the repo and failing when forcing isn't enabled
  • The better approach is to skip the task when A and not B
    or rather do it when not A or B
  • Put another way, run the task when:
    • the repo doesn't exist
    • ... or ...
    • the repo exists and forcing is enabled

* Let A = repo exists, B = git module forcing
* There's a case of A and not B, which should skip the task
* If the task isn't skipped,
    it will try to clone the repo and failing when forcing isn't enabled
* The better approach is to skip the task when A and not B
    or rather do it when not A or B
* Put another way, run the task when:
    * the repo doesn't exist
    * ... or ...
    * the repo exists and forcing is enabled
@marcus-grant marcus-grant merged commit 07b26cb into main Oct 6, 2023
@marcus-grant marcus-grant deleted the marcus-grant/issue15 branch October 6, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant