tobiastimm / code-theme-converter

Convert any Visual Studio Code Theme to Sublime Text 3 or IntelliJ IDEA
MIT License
137 stars 11 forks source link

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

Open charitarthchugh opened 2 years ago

charitarthchugh commented 2 years ago

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 commented 2 years ago

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

charitarthchugh commented 2 years ago

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 commented 2 years ago

Yup.

tobiastimm commented 7 months ago

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