Each time, I see merged
status on my change in Gerrit and I do git pull origin
, I can clearly see, that my change/branch hasn't actually been merged into master.
Please, review my Gerrit's workflow and tell me, what I'm doing wrong or what am I missing:
Create & checkout branch locally.
git checkout -b 77-blah
Do the magic and comment all changes.
git commit -am "changes to 77-blah"
Create the same branch using UI and setting its revision to
HEAD
(this should be automated soon).Push changes (that particular branch) to Gerrit, with proper refs refs:
git checkout 77-blah
git push origin HEAD:refs/for/77-blah
Visit URL, Gerrit gave me, review my change or wait for someone else to review it.
Visit change's URL again, make sure that
Status = Merged
.Pull latest changes from Gerrit:
git checkout master
git pull origin
Last command's result ends with Already up-to-date
, which (if I'm not stupid) means, that my master is up-to-date. In normal Git's repo, at this point, this would be true. My master
branch would become up-to-date, with my latest (77-blah
) branch already merged to it.
On Gerrit I'm refreshing my webpage, that I'm currently working in (while I'm on master
) only to find out, that all changes introduced in that particular branch are gone and the entire website is in state before creating latest branch. Gerrit only claims, that my master
is up to date.
And I can confirm that, by executing git branch -d 77-blah
and getting as the result:
error: The branch '77-blah' is not fully merged. If you are sure you want to delete it, run 'git branch -D 77-blah'.
Actually, I have to merge my latest branch manually locally. What am I missing?
What does it mean (in Gerrit terms) that change is merged, while it actually isn't merged at all?