Hi,
We have just upgraded our production server from 2.1.8 to 2.4.2 and now we are running into some issues while cherry-picking the "merge patch".
Notice that we are using "cherry-pick" as our submit method.
Let's use change # 483894 for example:
- Patch # 2 has been approved and submitted, then I wanted to cherry pick the merged commit into another branch.
- I ran the command below to get the ref for that change:
$ ssh -n -p 29418 review-server gerrit query --current-patch-set "483894" | grep "ref: " | awk 'BEGIN { FS = ": " } ; { print $2 }'
refs/changes/94/483894/3
When I run "git fetch origin refs/changes/94/483894/3" Gerrit returns: fatal: Couldn't find remote ref refs/changes/94/483894/3
If I try it with /2 in the end, it works.
Go to the download session, copy the cherry-pick command and paste it into the terminal:
$ git fetch ssh://lscarval@review_server:29418/platform/some-repo refs/changes/94/483894/3 && git cherry-pick FETCH_HEAD
fatal: Couldn't find remote ref refs/changes/94/483894/3
Has this ever been reported? Is there a quick fix for it?
Thanks,
Luciano.