Issue 1493: Push to refs/heads fails (returned status code 1)
Status:  Released
Owner: ----
Closed:  Jul 2012
Reported by estepan...@griddynamics.com, Jul 26, 2012
************************************************************
***** 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:2.4.2

What steps will reproduce the problem?

1.Post a code review: git push origin HEAD:refs/for/dev
2.Try pushing the changes bypassing code review: git push origin HEAD:refs/heads/dev (actually, I'm trying to use Jenkins Git Publisher to push changes after tests passed)

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

Expected: 
1) command executed successfully 
2) changes are pushed 
3) review is closed

Actual: 
1) returned status code 1:
"Total 0 (delta 0), reused 0 (delta 0)
remote: Processing changes: closed: 1, refs: 2, done    
To ssh://***@red.bull:29418/***
 ! [remote rejected] HEAD -> dev (change 71 closed)
error: failed to push some refs to 'ssh://***@red.bull:29418/***'
"
2) Despite of return code the changes are pushed and review is closed


Please provide any additional information below.

Jul 26, 2012
Project Member #1 edwin.ke...@gmail.com
I've pushed a fix for review [1].

[1] https://gerrit-review.googlesource.com/37000
Jul 26, 2012
#2 sop@google.com
(No comment was entered for this change.)
Status: Submitted
Labels: FixedIn-2.5
Aug 10, 2012
Project Member #3 jaysoff...@gmail.com
 Issue 1522  has been merged into this issue.
Oct 31, 2012
Project Member #4 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Released