Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

circleci orb init creates repository with wrong branch #646

Closed
kieran-osgood opened this issue Nov 14, 2021 · 1 comment · Fixed by #680
Closed

circleci orb init creates repository with wrong branch #646

kieran-osgood opened this issue Nov 14, 2021 · 1 comment · Fixed by #680
Labels
bug Something isn't working

Comments

@kieran-osgood
Copy link

Meta:

CircleCI CLI Version:
0.1.16225+8d5e389 (homebrew)

Operating System:
Mac OS Big Sur - 11.6 (20G165)

CircleCI CLI Diagnostic:

---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /Users/kieranosgood/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API...
Ok.
Hello, Kieran Osgood.

Current behavior:

When running the circleci orb init command at the point of selecting branch, I selected the default of main, and the output of the next steps where it says to push the branch correctly re-iterate main, but upon inspecting the branch it actually created the repository with it had used master, see:
image

Expected behavior:

Creates repository with the correct branch

When did this begin / Was this previously working?:

Not sure, this is first time I've used the command and I only downloaded the cli today

@kieran-osgood kieran-osgood added the bug Something isn't working label Nov 14, 2021
@adamdmharvey
Copy link
Contributor

adamdmharvey commented Nov 23, 2021

Came here to report same issue. (exact same version + OS as Kieran)

For my git push, I had to just run,

git branch main
git push origin main

And it seemed to work, but agree that if I selected main, the locally initialized repo should have been init'd with the branch name I selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants