Issue 1699: push to *.git.git problem
Status:  Released
Owner: ----
Closed:  Sep 2013
Reported by sp3...@gmail.com, Dec 3, 2012
Hi,

Consider following scenario:

You have 'test' repository on gerrit server. In normal situation valid ssh push looks like either:

git push ssh://gerrit:29418/test HEAD:refs/for/master

or

git push ssh://gerrit:29418/test.git HEAD:refs/for/master

But if you push to broken url (by mistake or by broken sed script or whatever) to:

git push ssh://gerrit:29418/test.git.git HEAD:refs/for/master

Then gerrit will show that the change goes to 'test.git' project instead 'test' project. This is visible on the commit list page and in the commit view page. Also search is broken:

"status:merged project:test"

returns different list than

"status:merged project:test.git"

Submitted change will go into correct place though ('test' project).

Bug or feature?

I would expect 'no such project/repository' response from gerrit in such situation.

Affected Version: v2.5

Dec 4, 2012
Project Member #2 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: ChangeUnderReview
Aug 20, 2013
Project Member #3 bruce.zu@sonymobile.com
with 40190 when there are only :
All-Projects.git  p.git
anyone of below 2 commands will work fine
git push ssh://<name>@host:29418/p   HEAD:refs/for/master
git push ssh://<name>@host:29418/p.git   HEAD:refs/for/master

while $ git push ssh://<name>@host:29418/p.git.git   HEAD:refs/for/master
fatal: Project not found: p.git
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

thus   Issue 1699  is prevented to happen.

---------------
when there are only :
All-Projects.git  p.git/.git
or
All-Projects.git  p.git.git

anyone of below 2 commands  
git push ssh://<name>@host:29418/p   HEAD:refs/for/master
git push ssh://<name>@host:29418/p.git   HEAD:refs/for/master

will get:
fatal: Project not found: p
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

while 
$ git push ssh://<name>@host:29418/p.git.git   HEAD:refs/for/master
or
$ git push ssh://<name>@host:29418/p.git/.git   HEAD:refs/for/master
will work fine

------------------
Sep 2, 2013
Project Member #4 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: Submitted
Labels: FixedIn-2.8
Dec 9, 2013
Project Member #5 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: Released
Apr 3, 2014
Project Member #6 david.pu...@sonymobile.com
 Issue 2581  has been merged into this issue.