Gittyup icon indicating copy to clipboard operation
Gittyup copied to clipboard

Unable to fetch/push from 'origin' - malformed URL

Open opa56 opened this issue 3 years ago • 6 comments

When I try to push (or pull) from a remote repository, I get the following error message:

... malformed URL 'ssh://myname@myserver:56789/home/myname/bücher/2022.gi'

So, the last letter within the URL, 't' is missing (at least in the error message). As I could not find any similar open issue, it seems, that the problem lies on my side. Is it possible, that the use of umlaut 'ü' causes the problem?

opa56 avatar Feb 24 '23 16:02 opa56

Hi @opa56 can you provide us the output of 'git remote -v'

And also the entry in Gittyup: "Remote" menu

Murmele avatar Feb 25 '23 13:02 Murmele

Can you try to replace ü by ue if it chenges anything?

Murmele avatar Feb 25 '23 13:02 Murmele

$ git remote -v

origin ssh://myname@myserver:56789/home/myname/bücher/2022.git (fetch) origin ssh://myname@myserver:56789/home/myname/bücher/2022.git (push)

The entry in the Gittyup "Remote" menu lokks the same. Pushing and pulling work fine (despite the umlaut) from the command shell and (formerly) with SmartGit.

Now I discovered, that - if the path contains two umlaut characters, a second character is omitted at the end. Example: ... malformed URL 'ssh://myname@myserver:56789/home/myname/bücher/bücher.g'

After this discovery I guess, that some string function only sees one character (with one byte length), while the 'ü' is probably coded in two bytes.

My tests with a repository not containing any umlaut work fine. Does this help you?

opa56 avatar Feb 25 '23 14:02 opa56

thanks for the informations. I will try it out, maybe I can reproduce it

Murmele avatar Feb 25 '23 19:02 Murmele

i can confirm if the URL/domain is international domain name the URL gets the malformed error confirmed for spanish ñ è romanian ă ţ french ç

icf20 avatar Jan 11 '25 10:01 icf20

I can confirm that a problem also occurs if the URL contains a space character or %20

ydakilux avatar Feb 17 '25 09:02 ydakilux