Skip to content

Commit

Permalink
use --force-if-inclues alongside --force-with-lease
Browse files Browse the repository at this point in the history
Signed-off-by: Kipras Melnikovas <[email protected]>
  • Loading branch information
kiprasmel committed May 8, 2022
1 parent f53eba8 commit 50a087d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion forcePush.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,13 @@ export const forcePush: BranchSequencerBase = (argsBase) =>
*
* needs to be further explored with our `--sync` (TBD)
*
*
* on --force-if-includes, see:
* - `man git-push`
* - https://stackoverflow.com/a/65839129/9285308
* - https://github.com/gitextensions/gitextensions/issues/8753#issuecomment-763390579
*/
const forceWithLeaseOrForce: string = "--force-with-lease";
const forceWithLeaseOrForce: string = "--force-with-lease --force-if-includes";

if (!upstreamBranch) {
const remotes: string[] = await repo.getRemoteNames();
Expand Down

0 comments on commit 50a087d

Please sign in to comment.