summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/post-receive1
-rwxr-xr-xhooks/update12
2 files changed, 12 insertions, 1 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 6944d3e..ebd9e1a 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-# Version 4.1
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
diff --git a/hooks/update b/hooks/update
new file mode 100755
index 0000000..f483cc0
--- /dev/null
+++ b/hooks/update
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+
+# This file was placed here by GitLab. It makes sure that your pushed commits
+# will be processed properly.
+
+refname = ARGV[0]
+key_id = ENV['GL_USER']
+repo_path = `pwd`
+
+require_relative '../lib/gitlab_update'
+
+GitlabUpdate.new(repo_path, key_id, refname).exec