Skip to content

[bug] Cannot git checkout repo which only has the branch main. #45

@VergeDX

Description

@VergeDX

When I use code2idea, I found it can convert https://github.com/tobiastimm/raiju but cannot convert https://github.com/rose-pine/vscode, the
the error message is cannot do git checkout: Trace: Error: 'git clone' failed with status 128.

I think we should not hardcode "master" in code, provide a args to checkout branch or tags is good.
It also can use the default branch when git clone, the extra git checkout command is unnecessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions