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

Categories

0 votes
1.3k 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://[email protected]/CollectionName/AppName/_git/repository.name.git (fetch)
origin ssh://[email protected]/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 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

62 comments

56.6k users

...