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

🐛 BUG: wrangler init fails to initialize git #1208

Closed
nexxeln opened this issue Jun 9, 2022 · 4 comments
Closed

🐛 BUG: wrangler init fails to initialize git #1208

nexxeln opened this issue Jun 9, 2022 · 4 comments
Labels
bug Something that isn't working

Comments

@nexxeln
Copy link

nexxeln commented Jun 9, 2022

What version of Wrangler are you using?

2.0.8

What operating system are you using?

WSL Ubuntu

Describe the Bug

When I ran wrangler init my-worker, there was a prompt for if I would like to use git or not. I selected y and it threw the following error:

Command failed with exit code 129: git init --initial-branch=main

  error: unknown option `initial-branch=main'
  usage: git init [-q | --quiet] [--bare] [--template=<template-directory>]
  [--shared[=<permissions>]] [<directory>]

      --template <template-directory>
                            directory from which templates will be used
      --bare                create a bare repository
      --shared[=<permissions>]
                            specify that the git repository is to be shared amongst several users
      -q, --quiet           be quiet
      --separate-git-dir <gitdir>
                            separate git dir from working tree

My git version is 2.25.1

demo

@nexxeln nexxeln added the bug Something that isn't working label Jun 9, 2022
@nexxeln
Copy link
Author

nexxeln commented Jun 9, 2022

Nevermind, turns out I just need to update git. Sorry for wasting your time.

@nexxeln nexxeln closed this as completed Jun 9, 2022
@threepointone
Copy link
Contributor

It's not a waste of time, it's a valid bug! We want to fix it, tracking here #1168

@petebacondarwin
Copy link
Contributor

And fixed here #1209 !!

@nexxeln
Copy link
Author

nexxeln commented Jun 9, 2022

Great! Glad I was of some help!
PS: @threepointone great talk with Theo today, loved it!

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

No branches or pull requests

3 participants