Skip to content

Conversation

@yusoofsh
Copy link
Contributor

@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
@Siumauricio
Copy link
Contributor

@yusoofsh Can you check the errors on the ci/cd?

@Siumauricio
Copy link
Contributor

Can you also pull the changes from canary and recreate the migrations since we added gitea provider?

yusoofsh and others added 8 commits March 30, 2025 12:02
…ents and update database schema. This change introduces a new boolean field `enableSubmodules` to control submodule behavior in Git operations, replacing the previous `recurseSubmodules` field. Updates include modifications to the UI components, API routers, and database schema to accommodate this new feature.
…modules` field. This update includes the integration of a switch component in the UI and updates to the test files to reflect the new feature.
@Siumauricio Siumauricio merged commit 6518407 into Dokploy:canary Apr 26, 2025
4 checks passed
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.

2 participants