SrBrahma / GitHub-Repository-Manager

VS Code Extension to quickly clone, initialize and open your GitHub repositories
MIT License
31 stars 14 forks source link

Error when cloning a repo #33

Closed fslef closed 2 years ago

fslef commented 2 years ago

Hello,

I run into this issue when I try to clone a repo:

image

This is my first try, I never used this extension before.

Could you help me to troubleshoot this issue ?

SrBrahma commented 2 years ago

Hi @fslef ! Is the repository in question public? Did you try it with other repositories?

fslef commented 2 years ago

I tried both, private and public repo, same behavior. But I need to clarify one point.

The error I'm facing is on MacOS system. From Windows, same configuration same repo, I have no issues.

SrBrahma commented 2 years ago

I am also having this issue now, no idea why yet. Will look into it soon.

SrBrahma commented 2 years ago

Hi, it seems that I fixed it.

I am using git remote show <remoteUrl> inside the just git init'ed directory and parsing its stdout output to get the repo HEAD. It worked when the output was in English, but on other languages it wouldn't work. I changed the regex to get it when the line just contains HEAD and hopefully it shall now work with other languages.

Also, I've added the stdout to the error message you've got (and fixed the "haven't" to "hasn't" lol), so if you or someone else still has this issue, I will only need to change the regex to support the user language that it's failing.

Also, this didn't happened before on Prod for me. Maybe there was a git update that added my language to it. I still have no idea on why it didn't happen on Dev but only on Prod yesterday.

Sorry for the first bad experience you've had and I ask if you can give it another try and tell me if it's now working ;)

SrBrahma commented 2 years ago

I am closing it now as it is probably fixed. If it still happening for you or someone else, I ask to send here the error message, now improved.