Update gitlab.ts cloneRawGitlabRepositoryRemote to use gitlabBranch

Cloning a GitLab repository for a compose service to a remote server incorrectly used the "branch" column from Postgres' "compose" table instead of the "gitlabBranch" column causing an error.
This commit is contained in:
Dragos-Paul Pop
2025-09-17 11:48:12 +03:00
committed by GitHub
parent d9398b9558
commit f2ead66890
@@ -401,7 +401,7 @@ export const cloneRawGitlabRepositoryRemote = async (compose: Compose) => {
const { const {
appName, appName,
gitlabPathNamespace, gitlabPathNamespace,
branch, gitlabBranch,
gitlabId, gitlabId,
serverId, serverId,
enableSubmodules, enableSubmodules,
@@ -429,7 +429,7 @@ export const cloneRawGitlabRepositoryRemote = async (compose: Compose) => {
try { try {
const command = ` const command = `
rm -rf ${outputPath}; rm -rf ${outputPath};
git clone --branch ${branch} --depth 1 ${enableSubmodules ? "--recurse-submodules" : ""} ${cloneUrl} ${outputPath} git clone --branch ${gitlabBranch} --depth 1 ${enableSubmodules ? "--recurse-submodules" : ""} ${cloneUrl} ${outputPath}
`; `;
await execAsyncRemote(serverId, command); await execAsyncRemote(serverId, command);
} catch (error) { } catch (error) {