Skip to content

Commit

Permalink
fix: delete tag not pushing
Browse files Browse the repository at this point in the history
/usr/bin/git push --delete v1
fatal: --delete doesn't make sense without any refs
Error: Error: The process '/usr/bin/git' failed with exit code 128

Fix -> git push --delete origin v1
  • Loading branch information
Davidmattei committed Nov 24, 2022
1 parent d0f196c commit 8f6c235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async function promiseAllInBatches(subtreeSplits: subtreeSplit[], batchSize: num
await exec('git', ['clone', split.target, '.'], { cwd: clonePath});

if (await tagExists(tag, clonePath)) {
await exec('git', ['push', '--delete', tag], { cwd: clonePath});
await exec('git', ['push', '--delete', 'origin', tag], { cwd: clonePath});
}
});
}
Expand Down

0 comments on commit 8f6c235

Please sign in to comment.