fix: FORCE_PUSH not working with simple-git 3

This commit is contained in:
bcanseco
2023-01-22 14:44:40 -07:00
parent 0550b5854e
commit 74527e7609

View File

@@ -47,4 +47,4 @@ await dayOffsets
.flat()
.reduce((commitPromises, nextPromise) => commitPromises.then(nextPromise), Promise.resolve());
await git(localPath).push(repoPath, env.GIT_BRANCH, env.FORCE_PUSH && {'--force': null});
await git(localPath).push(repoPath, `HEAD:${env.GIT_BRANCH}`, env.FORCE_PUSH && {'--force': null});