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

Add option to disable recurse submodules #1563

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

yusoofsh
Copy link

@yusoofsh yusoofsh commented Mar 25, 2025

Add option to disable recurse submodules under "Provider Select the source of your code" form.

  • Add a checkbox to disable recurse submodules in apps/dokploy/components/dashboard/application/general/generic/save-git-provider.tsx, apps/dokploy/components/dashboard/application/general/generic/save-github-provider.tsx, and apps/dokploy/components/dashboard/application/general/generic/save-gitlab-provider.tsx.
  • Update the form schema in the above files to include the new option.
  • Conditionally include the --recurse-submodules flag in the git clone command in the above files.
  • Update the "Provider Select the source of your code" form in apps/dokploy/components/dashboard/application/general/generic/show.tsx to include the new option.
  • Conditionally include the --recurse-submodules flag in the git clone command in packages/server/src/utils/providers/bitbucket.ts, packages/server/src/utils/providers/git.ts, packages/server/src/utils/providers/github.ts, and packages/server/src/utils/providers/gitlab.ts.
  • Add the --depth flag to optimize submodule cloning performance in the git clone command in packages/server/src/utils/providers/bitbucket.ts, packages/server/src/utils/providers/git.ts, packages/server/src/utils/providers/github.ts, and packages/server/src/utils/providers/gitlab.ts.

For more details, open the Copilot Workspace session.

Add option to disable recurse submodules under "Provider Select the source of your code" form.

* Add a checkbox to disable recurse submodules in `apps/dokploy/components/dashboard/application/general/generic/save-git-provider.tsx`, `apps/dokploy/components/dashboard/application/general/generic/save-github-provider.tsx`, and `apps/dokploy/components/dashboard/application/general/generic/save-gitlab-provider.tsx`.
* Update the form schema in the above files to include the new option.
* Conditionally include the `--recurse-submodules` flag in the `git clone` command in the above files.
* Update the "Provider Select the source of your code" form in `apps/dokploy/components/dashboard/application/general/generic/show.tsx` to include the new option.
* Conditionally include the `--recurse-submodules` flag in the `git clone` command in `packages/server/src/utils/providers/bitbucket.ts`, `packages/server/src/utils/providers/git.ts`, `packages/server/src/utils/providers/github.ts`, and `packages/server/src/utils/providers/gitlab.ts`.
* Add the `--depth` flag to optimize submodule cloning performance in the `git clone` command in `packages/server/src/utils/providers/bitbucket.ts`, `packages/server/src/utils/providers/git.ts`, `packages/server/src/utils/providers/github.ts`, and `packages/server/src/utils/providers/gitlab.ts`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Dokploy/dokploy?shareId=XXXX-XXXX-XXXX-XXXX).
@yusoofsh yusoofsh requested a review from Siumauricio as a code owner March 25, 2025 15:04
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