gerrithub + github sync issues

829 views
Skip to first unread message

syed mohamed

unread,
Dec 28, 2015, 5:06:04 AM12/28/15
to Repo and Gerrit Discussion
Hi all,

I am learning how the sync working between Gerrit hub and GitHub. At first I created a repository on GitHub and replicated in Gerrit hub and pushed some changes in Gerrit and it's successfully synced with git. But When I do git push -f origin [sha1-of-previous-commit]:master, it's successfully pushing into gerrithub. But it's not syncing in github. I don't know why this doesn't sync properly. These are my test repository links.

GitHub Link: https://github.com/SyedAshraf/test-projects

gerrithub Link: https://review.gerrithub.io/#/admin/projects/SyedAshraf/test-projects

 Any help me to out of here would be very appreciated.

Thanks
Syed Mohamed

Luca Milanesio

unread,
Dec 28, 2015, 6:21:11 AM12/28/15
to syed mohamed, Repo and Gerrit Discussion
Hi Syed,
as a matter of caution, the GerritHub replication is not performing any forced push to GitHub. When you have to force push to GerritHub, you need to do the same to GitHub for not breaking the replication.

Luca.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

syed mohamed

unread,
Dec 29, 2015, 6:51:16 AM12/29/15
to Repo and Gerrit Discussion, mohame...@gmail.com
Hi Luca,
  
     Thanks for your quick reply. I did force push on GitHub and GerritHub, but still replication is not working  for consequent commits.

GitHub Link: https://github.com/SyedAshraf/test-projects

Gerrit hub Link: https://review.gerrithub.io/#/admin/projects/SyedAshraf/test-projects

The link to my last commit: https://review.gerrithub.io/#/c/257103/

If you see my GerritHub last patch was successfully merged. But still it's not reflect in GitHub. I'm stuck in here. Please assist.

Thanks
Syed

Luca Milanesio

unread,
Dec 29, 2015, 6:57:21 AM12/29/15
to syed mohamed, Repo and Gerrit Discussion
Hi Syed,
to be sure that are both on the same commit, just do:


2) cd test-projects && git checkout master

3) git push -f https://github.com/SyedAshraf/test-projects master:master

Luca.

syed mohamed

unread,
Dec 30, 2015, 6:56:12 AM12/30/15
to Repo and Gerrit Discussion, mohame...@gmail.com
It's Working :)

Thanks.

Santhosh Subramanian

unread,
Feb 15, 2016, 9:08:13 AM2/15/16
to Repo and Gerrit Discussion
Hi,

I am running gerrit on my local instance in my pc.

The issue is after i code review and submit it, it says it had successfully merged into the git repository. On the local copy inside the gerrit server the commit has been merged, but on github it's not reflecting.

What am i missing ?

Regards
Santhosh
Reply all
Reply to author
Forward
0 new messages