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

code2idea and code2subl are not able to checkout the repo #55

Open
charitarthchugh opened this issue Jun 8, 2022 · 4 comments
Open
Labels
bug Something isn't working

Comments

@charitarthchugh
Copy link

charitarthchugh commented Jun 8, 2022

Here is the following error output:

~
❯ code2idea https://github.com/piousdeer/vscode-adwaita.git
Fetching repo
Trace: Error: 'git checkout' failed with status 1
    at Object.<anonymous> (/home/user/.npm/lib/node_modules/code-theme-converter/dist/idea/convert.js:88:21)
    at Generator.throw (<anonymous>)
    at rejected (/home/user/.npm/lib/node_modules/code-theme-converter/dist/idea/convert.js:6:65)
  Successfully converted the vscode theme for IDEA!

Same for code2subl

❯ code2subl "https://github.com/piousdeer/vscode-adwaita"
Fetching repo
Error: 'git checkout' failed with status 1
Successfully converted the vscode theme for sublime text!

Tested against node 18.3.0 and 16.15.1
I have been able to reproduce this behavior in a container as well (node:latest & node:16)

@agenordebriat
Copy link

Try again using code2subl https://github.com/piousdeer/vscode-adwaita#main instead. Works for me!

@charitarthchugh
Copy link
Author

charitarthchugh commented Jun 13, 2022

Worked for me as well with code2idea. I am guessing this behavior is due to explicitly looking for the master branch as the default?

@agenordebriat
Copy link

Yup.

@tobiastimm
Copy link
Owner

Yeah I didn't have the time to introduce any changes in the last year. Probably there needs to be a check for master/main

@tobiastimm tobiastimm added the bug Something isn't working label Dec 7, 2023
@github-staff github-staff deleted a comment Apr 26, 2024
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

No branches or pull requests

3 participants