Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

ssh - Gitkraken malformed url - on pull Gitkraken edits the remote url and puts ".git" on the end

Gitkraken malformed url on pull

Gitkraken creates a malformed url when doing a pull edits to remote urls by adding a username and also appends ".git" to the end of the url making it malformed. Our remote repository urls don't have a ".git" on the end.

Example (no username or .git on the url for our Azure DevOps repos):

git remote -v
origin ssh://example.company.net/CollectionName/AppName/_git/repository.name (fetch)
origin ssh://example.company.net/CollectionName/AppName/_git/repository.name (push)

The moment any developer does a pull in Gitkraken it then asks for a username with a "Submit" button. Once that is done on the first one it says successful. Then after that, the next pull gives the error:

Pull Failed
malformed URL

If we look at the remote list again. Now it has been edited and adds a username and ".git" to the end making it invalid

git remote -v
origin ssh://username@example.company.net/CollectionName/AppName/_git/repository.name.git (fetch)
origin ssh://username@example.company.net/CollectionName/AppName/_git/repository.name.git (push)
question from:https://stackoverflow.com/questions/65941743/gitkraken-malformed-url-on-pull-gitkraken-edits-the-remote-url-and-puts-git

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If this behaviour is not configurable (and should be reported to GitKraken support), you might consider, as a temporary workaround, adding symlinks to your remote repositories

On the remote side:

cd CollectionName/AppName/_git/
ln -s repository.name repository.name.git

That would help you keep using GitKraken while accessing your remote repositories.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...