Skip to content

Commit

Permalink
Merge pull request #97 from jackton1/patch-1
Browse files Browse the repository at this point in the history
Prevent creating an already existing branch.
  • Loading branch information
asottile committed Apr 20, 2021
2 parents f0ba443 + 75fa31d commit 1d1afd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -87,7 +87,7 @@ async function main() {
);

const branch = pr.head.ref;
await exec.exec('git', ['checkout', 'HEAD', '-b', branch]);
await exec.exec('git', ['checkout', 'HEAD', '-B', branch]);

await exec.exec('git', ['commit', '-am', 'pre-commit fixes']);
const url = addToken(pr.head.repo.clone_url, token);
Expand Down

0 comments on commit 1d1afd7

Please sign in to comment.