Skip to content

Commit 1d1afd7

Browse files
authored
Merge pull request #97 from jackton1/patch-1
Prevent creating an already existing branch.
2 parents f0ba443 + 75fa31d commit 1d1afd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function main() {
8787
);
8888

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

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

0 commit comments

Comments
 (0)