| Issue 1699: | push to *.git.git problem | |
| 3 people starred this issue and may be notified of changes. | Back to list |
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 3, 2012
Project Member
#1
bruce.zu@sonymobile.com
Dec 4, 2012
(No comment was entered for this change.)
Status:
ChangeUnderReview
Aug 20, 2013
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
(No comment was entered for this change.)
Status:
Submitted
Labels: FixedIn-2.8
Dec 9, 2013
(No comment was entered for this change.)
Status:
Released
Apr 3, 2014
Issue 2581 has been merged into this issue. |
|
| ► Sign in to add a comment |