Typically this happens if you've somehow done a rebase such that the upstream patch is in your branch under a different git hash than was actually committed. I'd recommend fetching from the upstream branch, doing a 'rebase -i' against it, and making sure that the only patches that show up in your interactive rebase are your own.
-Todd On Wed, Aug 17, 2016 at 8:32 PM, Jim Apple <[email protected]> wrote: > +todd > > Very strange - I have never seen anything like that. > > Todd, have you seen anything like this before? > > On Wed, Aug 17, 2016 at 8:14 PM, Wang, Youwei A <[email protected]> > wrote: > > Greetings, everyone. > > Just two days ago, I could submit/update my patch using following > command successfully: > > git push gerrit HEAD:refs/for/cdh5-trunk > > > > However, when I try this command to update my patch at this link today: > > https://gerrit.cloudera.org/#/c/3081/ > > > > I have got an error message saying: > > ! [remote rejected] HEAD -> refs/for/cdh5-trunk (change > http://gerrit.cloudera.org:8080/3246 closed) > > error: failed to push some refs to 'ssh://Hayabusa-intel@gerrit. > cloudera.org:29418/Impala' > > > > It seems the push command tried to push my change to another closed > change. > > That is really weird. Since my local changeId is: > > Git log -1 > > Author: .................................... > > Date: Thu Aug 18 22:53:13 2016 +0800 > > > > IMPALA-2809: Improve ByteSwap with builtin function or SSSE3 or AVX2. > > .................................... > > > > Change-Id: I392ed5a8d5683f30f161282c228c1aedd7b648c1 > > > > The changed from my patch link https://gerrit.cloudera.org/#/c/3081/ is > also: > > Change-Id: I392ed5a8d5683f30f161282c228c1aedd7b648c1 > > You can see they are identical. > > > > As for this link http://gerrit.cloudera.org:8080/3246, > > Its changeId is I8777cf76f04d34a46f53d53005412e0f1d63b5b7. > > Yes, it is closed so the error message (change > http://gerrit.cloudera.org:8080/3246 closed) does make some sense here. > But I have no idea why git pushes my change to another unrelated change. > > > > Thank you for any hint or idea. :) > > > > > > > -- Todd Lipcon Software Engineer, Cloudera
