Ok, nice. I'll give that a try and see where it ends up. Thank you! On 14 October 2014 21:35, Sytse Sijbrandij <sy...@gitlab.com> wrote:
> Yeah, if you push to GitLab in the normal way (ssh) it should trigger a > hook. If you write to the disk directly the hook is not triggered. > > Best regards, > Sytse Sijbrandij > CEO GitLab B.V. > > On Tue, Oct 14, 2014 at 9:31 PM, Jonas Hellström <jbh...@gmail.com> wrote: > >> Ok, good to know. Thanks for the quick replies, much appreciated. >> >> The reason for why: >> >> 1: We use Gerrit at work, so I'm most familiar with that >> 2: The transition between Gerrit and Gitlab would be smoother if I could >> have both worlds >> 3: I'm currently experimenting with the setup to see what can be supported >> >> I wouldn't know really how to properly make these syncs work with ssh. I >> guess you mean that I would use a post-merge hook that pushes the changes >> from Gerrit to Gitlab? Would Gitlab be aware of the changes and present >> them as Activities if I managed to do this? >> >> Thank you, >> Jonas >> >> On Tuesday, 14 October 2014 20:53:10 UTC+2, sytse wrote: >>> >>> Hi Jonas, >>> >>> In that case I misunderstood, GitLab should be fine with other programs >>> symlinking to its directories. >>> >>> But you are left with your initial problem. There is no way for GitLab >>> to be informed that Gerrit is modifying the files. >>> >>> I'm not sure if it is practical but it would be better to modify a local >>> repository with Gerrit and than push those changes to GitLab over ssh. >>> >>> By the way, why use Gerrit at all? Is there something you're missing >>> from GitLab merge requests? >>> >>> Best regards, >>> Sytse Sijbrandij >>> CEO GitLab B.V. >>> >>> On Tue, Oct 14, 2014 at 7:32 PM, Jonas Hellström <jbh...@gmail.com> >>> wrote: >>> >>>> Hmm, either I'm misunderstanding the warning in that configuration file >>>> or I'm not 100% clear. >>>> >>>> * The symlink itself is not the Gitlab repos_path. >>>> * Gitlab's repos_path is a regular folder that contains regular bare >>>> repositories. >>>> * The symlinks I create are placed in Gerrits repositories path. Gerrit >>>> finds them without issues. It is just that Gitlab does not seem to become >>>> aware of a merge made within Gerrit. >>>> >>>> On Tuesday, 14 October 2014 16:00:31 UTC+2, sytse wrote: >>>>> >>>>> FYI We explicitly warn against making the repo path a symlink >>>>> https://gitlab.com/gitlab-org/gitlab-ce/blob/1d432e9 >>>>> 6bc44ad2f7f67dc4a551d34083f51f281/config/gitlab.yml.example#L236 >>>>> since it has caused a lot of problems in the past. >>>>> >>>>> Best regards, >>>>> Sytse Sijbrandij >>>>> CEO GitLab B.V. >>>>> >>>>> On Mon, Oct 13, 2014 at 8:13 PM, Jonas Hellström <jbh...@gmail.com> >>>>> wrote: >>>>> >>>>>> I've been dabbling with both Gerrit and Gitlab for a very brief >>>>>> period and I've come to like them both in their own special ways. >>>>>> I'm also collaborating with a few other people who have varying >>>>>> experience with both Gitlab and Gerrit, which is why I'm trying to please >>>>>> both parties. >>>>>> >>>>>> I've been successful at setting up Gerrit 2.8 and Gitlab 7.3.2 and >>>>>> they seem to be working nicely. >>>>>> What I've done in order to satisfy that both Gerrit and Gitlab share >>>>>> the same codebase is to point a symlink from Gitlab to Gerrit's repo_home >>>>>> folder. This is working out ok, Gerrit sees the repositories. It's also >>>>>> possible to clone the repositories from either end and work with them. >>>>>> Gitlab shows the commit history of whatever merge is done by Gerrit. >>>>>> >>>>>> What doesn't work as well as I'd like is that the Dashboard never >>>>>> reflects any of the Gerrit-merges. I'm trying to figure out if there's a >>>>>> way to add a hook or something else to the merge flow, to trigger Gitlab >>>>>> to >>>>>> become aware of the change and make it show up. >>>>>> >>>>>> This is where I'd like to turn to you all. This setup is not ideal, >>>>>> because you would normally not use more than one code review tool, but >>>>>> you >>>>>> can see this as an experiment that I'd like to see if it's possible to >>>>>> follow through on. >>>>>> >>>>>> If anyone has a tips on how it would be possible for Gitlab to become >>>>>> aware of a Gerrit merge (submit) into a Git repository shared by both >>>>>> Gitlab and Gerrit, please share. I'm all ears. :) >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "GitLab" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to gitlabhq+u...@googlegroups.com. >>>>>> To view this discussion on the web visit https://groups.google.com/d/ >>>>>> msgid/gitlabhq/8303ead5-37bb-421f-a3d7-aafec9058d89%40googlegr >>>>>> oups.com >>>>>> <https://groups.google.com/d/msgid/gitlabhq/8303ead5-37bb-421f-a3d7-aafec9058d89%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "GitLab" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to gitlabhq+u...@googlegroups.com. >>>> To view this discussion on the web visit https://groups.google.com/d/ >>>> msgid/gitlabhq/351d97ba-5695-462b-ab8e-175a50ec83ee%40googlegroups.com >>>> <https://groups.google.com/d/msgid/gitlabhq/351d97ba-5695-462b-ab8e-175a50ec83ee%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "GitLab" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to gitlabhq+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/gitlabhq/f8957bdb-2296-4da9-bb6a-5234f78ffb35%40googlegroups.com >> <https://groups.google.com/d/msgid/gitlabhq/f8957bdb-2296-4da9-bb6a-5234f78ffb35%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "GitLab" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/gitlabhq/0Eieo6hoM-o/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > gitlabhq+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/gitlabhq/CAJTzhG9faSJAh2OrULOpUJPigNG4O_4F8Vas_e5Ns3YiaHFu5A%40mail.gmail.com > <https://groups.google.com/d/msgid/gitlabhq/CAJTzhG9faSJAh2OrULOpUJPigNG4O_4F8Vas_e5Ns3YiaHFu5A%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/CAKCZBPwTmYCVhoy%2BLe-eKqfcXWwx4g%2BJ1m1X9-tV5qj%3DMo_cNQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.