bilelmoussaoui / nautilus-git

Nautilus/Nemo extension to add important information about the current git directory
GNU General Public License v3.0
149 stars 9 forks source link

Open URL for SSH cloned repositories #46

Closed MaxSchambach closed 5 years ago

MaxSchambach commented 5 years ago

Description

This simple adaption makes it possible to open URLs for repositories that were cloned via SSH.

I simply modified the get_url method in the git.py file to deal with "URLs" starting with git@ and convert them to URLs with https:\\

bilelmoussaoui commented 5 years ago

Will that always work? I mean, if the git repo doesn't point to a correct http server. I don't see a better way to handle this anyway :+1:

MaxSchambach commented 5 years ago

Thats true, if there is no http server behind it, so e.g. for self hosted git servers, that does not work. But yea, no way to handle that but try opening it in a browser and getting a 404 ;) Still, I think its nice for those cases, like github or gitlab, where there is a webserver running.

bilelmoussaoui commented 5 years ago

Thanks again! merged this for now and we will see how things could be improved in the future.