Issue 2769: review ssh command cannot find patch set when branch option is used
Status:  New
Owner: ----
Project Member Reported by zaro0508, Jul 9, 2014
Affected Version: master

What steps will reproduce the problem?
1. setup gerrit.  I setup a clean gerrit site.
2. create an admin user
3. add a change to gerrit.  I created a change with one file "pike.txt" that contains 1 line of text.
4. use the admin user to post a review to the change using the review SSH command (with --branch option).

What is the expected output? What do you see instead?
I expect the ssh command to update the change with the review.  Instead I get a "no such patch set" message and the review is NOT updated.

Please provide any additional information below.
if the --branch option is not specified then it works just fine.

Attempt without '--branch' option :

~/temp$ ssh -p 29418 zaro@localhost gerrit review --project sea --label Code-Review=-1 6fdbaefe6c
2048 ba:38:d0:ab:1c:cc:c2:0e:88:47:b6:27:06:37:25:09 /Users/zaro/.ssh/id_rsa (RSA)


Attempt with '--branch' option :

~/temp$ ssh -p 29418 zaro@localhost gerrit review --project sea --branch master --label Code-Review=-1 6fdbaefe6c
2048 ba:38:d0:ab:1c:cc:c2:0e:88:47:b6:27:06:37:25:09 /Users/zaro/.ssh/id_rsa (RSA)
fatal: "6fdbaefe6c" no such patch set