Issue 2431: Download links not working for git-repo project on gerrit-review.googlesource.com
Status:  AwaitingInformation
Owner:
Project Member Reported by david.pu...@sonymobile.com, Jan 27, 2014
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version:

What steps will reproduce the problem?
1. Use a download link from an open change on git-repo
2.
3.

What is the expected output? What do you see instead?

Should be able to fetch the change using the given command, however it fails with "couldn't find remote ref"


Please provide any additional information below.

Using the command as given from the download link:

$ git fetch https://gerrit.googlesource.com/git-repo refs/changes/20/53820/2 && git cherry-pick FETCH_HEAD
fatal: Couldn't find remote ref refs/changes/20/53820/2

After changing 'gerrit' to 'gerrit-review' it works:

$ git fetch https://gerrit-review.googlesource.com/git-repo refs/changes/20/53820/2 && git cherry-pick FETCH_HEAD
remote: Counting objects: 60, done
remote: Finding sources: 100% (3/3)
remote: Getting sizes: 100% (2/2)
remote: Compressing objects: 100% (80164/80164)
remote: Total 3 (delta 0), reused 1 (delta 0)
Unpacking objects: 100% (3/3), done.
From https://gerrit-review.googlesource.com/git-repo
 * branch            refs/changes/20/53820/2 -> FETCH_HEAD
[master 8481d04] Skip fetching tags for projects where the manifest specifies a commit id
 Author: Chris AtLee <chris.atlee@gmail.com>
 1 file changed, 18 insertions(+), 12 deletions(-)


Jan 29, 2014
#1 sop@google.com
Can you repeat the fetch with the gerrit.googlesource.com name?

I think what happened was you ran into one of our eventually consistent cases and the nearest data center to you didn't quite have the ref yet. It should now. Adding -review to the host name forced our load balancer to route to the subset that handles gerrit-review, and you got lucky it was updated.
Status: AwaitingInformation
Owner: sop@google.com
Cc: -sop@google.com
Labels: Environment-Google
Feb 3, 2014
Project Member #2 david.pu...@sonymobile.com
I'm still getting the same error fetching refs/changes/20/53820/2 and also when trying to fetch other changes on git-repo.

It works fine for gerrit changes.

[sorry for late reply; been out of the office since Weds last week]
Jun 7, 2015
Project Member #3 david.pu...@sonymobile.com
I'm still seeing this problem, and it's only on changes for git-repo.

If I try to fetch with the link from the download links tab, it fails.  If I change 'gerrit' to 'gerrit-review' it works.

Subsequently changing back to 'gerrit' for the same ref does not work.

Jun 12, 2015
Project Member #4 gustaf.l...@sonyericsson.com
Same for me:

$ git fetch https://gerrit.googlesource.com/git-repo refs/changes/20/53820/2 && git cherry-pick FETCH_HEAD
fatal: Couldn't find remote ref refs/changes/20/53820/2
$ git fetch https://gerrit-review.googlesource.com/git-repo refs/changes/20/53820/2 && git cherry-pick FETCH_HEAD
remote: Counting objects: 60, done
remote: Finding sources: 100% (3/3)
remote: Total 3 (delta 0), reused 1 (delta 0)
Unpacking objects: 100% (3/3), done.
From https://gerrit-review.googlesource.com/git-repo
 * branch            refs/changes/20/53820/2 -> FETCH_HEAD

Jun 12, 2015
#5 sop@google.com
Ugh. This shouldn't happen. We will look into it later today.
Jun 24, 2015
Project Member #6 david.pu...@sonymobile.com
Still getting the same error.
Jun 24, 2015
#7 sop@google.com
Yea, I'm not surprised. I didn't actually look at it on Jun 12. :(
Dec 17, 2015
Project Member #8 david.pu...@sonymobile.com
Any update?  I'm still getting the same error.