question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not fetch commit because no remote url matches Gerrit host

See original GitHub issue

I have cloned project from gerrit UI via git ssh. I installed gerrit plugin to IDEA and setup it setting web uri, username and password. I’m able to view a list of reviews but I’m not able to checkout reviews. As work around I can add http connection to .git/config file BUT i need to do it with each of my repository. I’m getting an error below when I click to review or perform any commands to it.

2:40 PM	Error
	Could not fetch commit because no remote url matches Gerrit host.
	it repository: '<path to repository on local machine>'.

BTW I’m able to commit to gerrit but nothing more

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
uwolfercommented, Jan 26, 2020

That should work, see the relevant code.

One thing which could break: the @ in your username. Could you try to URL encode this (not sure if that works, but please try)?

0reactions
KirillNNRUScommented, Jun 28, 2020

@uwolfer Maybe add checkbox I have @ in the user name? And the @ handling in the username?

Read more comments on GitHub >

github_iconTop Results From Across the Web

git with IntelliJ IDEA: Could not read from remote repository
Go to Settings->Git->Select Native in SSH executable dropdown. (If it is not selected) · Copy HTTPS link from your Github repository. · Go...
Read more >
Gerrit Code Review - Uploading Changes
Each new commit uploaded by the git push client will be converted into a change record on the server. The remote ref refs/for/experimental...
Read more >
Gerrit Code Review - Configuration
Gerrit does NOT authenticate the user via LDAP. This authentication type can only be used under hosted daemon mode, and the httpd.listenUrl must...
Read more >
Using git-review to push and review changes
If you have your repo already cloned (e.g. devops), you can use the following commands to set SSH URL and get the commit-msg...
Read more >
Git - git-push Documentation
When the command line does not specify where to push with the <repository> argument, branch.*.remote configuration for the current branch is consulted to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found