GitLab inserts one hook in every repo, this is needed to function. On Sat, May 10, 2014 at 12:13 AM, Rama <venkatram.ch...@gmail.com> wrote: > Hi, > > I want to use different update hooks for each repository in gitlab...i > noticed onething in the hooks directory the update script is already linked > to the gitab-shell/hooks/update....is it ok to remove the link and create a > new one or is it mandatory to have this link. > > Wanted to confirm before removing the softlink from the repository hooks > directory. > > Thanks > R > > Added the following code as to test the hook if it is really working....i > did not see any details getting written onto the update log file > > refname = ARGV[0] > key_id = ENV['GL_ID'] > repo_path = pwd > > require_relative '../lib/gitlab_update' > > GitlabUpdate.new(repo_path, key_id, refname).exec > > $updatelog = > '/opt/bitnami/apps/gitlab/repositories/rama/test.git/hooks/update.log' > puts "PATH #{repo_path}" > File.open("#$updatelog", 'a+') do |f2| > f2.puts "#{refname} #{key_id} #{repo_path}\n" > end > > Please help ....hope it is not because i removed the soft link and try to > add it again. > > Also noticed after this statement is executed ....the control is not comming > back to the update script. > > GitlabUpdate.new(repo_path, key_id, $refname).exec > > -- > 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. > 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/CAEG31mNLzewBaAxwH5SgkJn_vSpxmTrGWdVaKG%3D%3D9GqFP9cJFg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.