Skip to content

Commit

Permalink
fix: FORCE_PUSH not working with simple-git 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bcanseco committed Jan 22, 2023
1 parent 0550b58 commit 74527e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});

0 comments on commit 74527e7

Please sign in to comment.