-
Notifications
You must be signed in to change notification settings - Fork 807
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
🐛 BUG:Tries to init with main
branch but fails on older git versions
#1168
Labels
bug
Something that isn't working
Comments
main
branch but fails on older git versionsmain
branch but fails on older git versions
Looking into this |
petebacondarwin
added a commit
to petebacondarwin/wrangler2
that referenced
this issue
Jun 9, 2022
Rather than using the recently added `--initial-branch` option, we now just renamed the initial branch using `git branch -m main`. Fixes cloudflare#1168
petebacondarwin
added a commit
that referenced
this issue
Jun 9, 2022
Rather than using the recently added `--initial-branch` option, we now just renamed the initial branch using `git branch -m main`. Fixes #1168
Repository owner
moved this from In Review
to Done
in workers-sdk
Jun 9, 2022
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! 👋
Wrangler version: 2.0.7
OS: Linux/Ubuntu
I just tried my first
wrangler init
and it asked me if I wanted to use git to manage this Worker. I said yes but unfortunately the command failed because it did agit init --initial-branch=main
and that's not a valid option for my git version of 2.25. Based on this StackOverflow answer, the option was only added in v2.28.I'll look into updating my git version, but maybe wrangler can avoid using this option for older git versions? If you'd like to still call the branch
main
with older git versions, maybe that can be achieved with agit branch -m
?The text was updated successfully, but these errors were encountered: