From c2ff9eae0d2809d1be37b0f89964c1b334a9a2a6 Mon Sep 17 00:00:00 2001 From: broesch <908081+broesch@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:51:08 +0200 Subject: [PATCH] fix(git): submodule update command uses an unsupported option (#6454) --- CHANGELOG.md | 42 ++++++++++++++++++++++++++++++++++---- app/Models/Application.php | 2 +- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63c4554fe..153776f1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,16 +6,44 @@ All notable changes to this project will be documented in this file. ### 🚀 Features -- *(docs)* Expand Backlog.md guidelines with comprehensive usage instructions, CLI commands, and best practices for task management to enhance project organization and collaboration +- *(policies)* Add EnvironmentVariablePolicy for managing environment variables ( it was missing ) + +### 🐛 Bug Fixes + +- *(backups)* Rollback helper update for now + +### 📚 Documentation + +- Update changelog + +### ⚙️ Miscellaneous Tasks + +- *(core)* Update version +- *(versions)* Update coolify version to 4.0.0-beta.421 and nightly version to 4.0.0-beta.422 + +## [4.0.0-beta.420.9] - 2025-08-26 + +### 🐛 Bug Fixes + +- *(backups)* S3 backup upload is failing + +### 📚 Documentation + +- Update changelog + +### ⚙️ Miscellaneous Tasks + +- *(core)* Update version + +## [4.0.0-beta.420.8] - 2025-08-26 ### 🚜 Refactor - *(policies)* Remove Response type hint from update methods in ApplicationPreviewPolicy and DatabasePolicy for improved flexibility -### ⚙️ Miscellaneous Tasks +### 📚 Documentation -- *(versions)* Update coolify version to 4.0.0-beta.420.8 and nightly version to 4.0.0-beta.420.9 in versions.json and constants.php -- *(docker)* Update soketi image version to 1.0.10 in production and Windows configurations +- Update changelog ## [4.0.0-beta.420.7] - 2025-08-26 @@ -81,6 +109,7 @@ All notable changes to this project will be documented in this file. - *(docs)* Add Backlog.md guidelines and project manager backlog agent; enhance CLAUDE.md with new links for task management - *(docs)* Add tasks for implementing Docker build caching and optimizing staging builds; include detailed acceptance criteria and implementation plans - *(docker)* Implement Docker cleanup processing in ScheduledJobManager; refactor server task scheduling to streamline cleanup job dispatching +- *(docs)* Expand Backlog.md guidelines with comprehensive usage instructions, CLI commands, and best practices for task management to enhance project organization and collaboration ### 🐛 Bug Fixes @@ -158,12 +187,15 @@ All notable changes to this project will be documented in this file. - *(validation)* Implement centralized validation patterns across components - *(jobs)* Rename job classes to indicate deprecation status - Update check frequency logic for cloud and self-hosted environments; streamline server task scheduling and timezone handling +- *(policies)* Remove Response type hint from update methods in ApplicationPreviewPolicy and DatabasePolicy for improved flexibility ### 📚 Documentation - *(claude)* Clarify that artisan commands should only be run inside the "coolify" container during development - Add AGENTS.md for project guidance and development instructions - Update changelog +- Update changelog +- Update changelog ### ⚙️ Miscellaneous Tasks @@ -186,6 +218,8 @@ All notable changes to this project will be documented in this file. - *(cleanup)* Remove unused GitLab view files for change, new, and show pages - *(workflows)* Add backlog directory to build triggers for production and staging workflows - *(config)* Disable auto_commit in backlog configuration to prevent automatic commits +- *(versions)* Update coolify version to 4.0.0-beta.420.8 and nightly version to 4.0.0-beta.420.9 in versions.json and constants.php +- *(docker)* Update soketi image version to 1.0.10 in production and Windows configurations ### ◀️ Revert diff --git a/app/Models/Application.php b/app/Models/Application.php index f8f86d1f9..3db6e8eb7 100644 --- a/app/Models/Application.php +++ b/app/Models/Application.php @@ -998,7 +998,7 @@ class Application extends BaseModel $git_clone_command = "{$git_clone_command} sed -i \"s#git@\(.*\):#https://\\1/#g\" {$baseDir}/.gitmodules || true &&"; } // Add shallow submodules flag if shallow clone is enabled - $submoduleFlags = $isShallowCloneEnabled ? '--shallow-submodules' : ''; + $submoduleFlags = $isShallowCloneEnabled ? '--depth=1' : ''; $git_clone_command = "{$git_clone_command} GIT_SSH_COMMAND=\"ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\" git submodule update --init --recursive {$submoduleFlags}; fi"; } if ($this->settings->is_git_lfs_enabled) {