From cd59b19ac7eaebbe682510cd5e5d7b357cb59db1 Mon Sep 17 00:00:00 2001 From: James Murdza Date: Sun, 18 Aug 2024 06:46:51 -0700 Subject: [PATCH] fix: force push when deploying projects to Dokku --- backend/server/src/SecureGitClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/server/src/SecureGitClient.ts b/backend/server/src/SecureGitClient.ts index 5c115b8..84f2a8c 100644 --- a/backend/server/src/SecureGitClient.ts +++ b/backend/server/src/SecureGitClient.ts @@ -60,7 +60,7 @@ export class SecureGitClient { await git.commit("Add files."); // Push the changes to the remote repository - await git.push("origin", "master"); + await git.push("origin", "master", {'--force': null}); console.log("Files successfully pushed to the repository");