summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhooks/post-receive2
-rwxr-xr-xhooks/pre-receive2
2 files changed, 2 insertions, 2 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index da0ff41..34802e5 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -3,7 +3,7 @@
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
-refs = ARGF.read
+refs = $stdin.read
key_id = ENV['GL_ID']
repo_path = Dir.pwd
diff --git a/hooks/pre-receive b/hooks/pre-receive
index 7e23974..1f8a9d5 100755
--- a/hooks/pre-receive
+++ b/hooks/pre-receive
@@ -3,7 +3,7 @@
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
-refs = ARGF.read
+refs = $stdin.read
key_id = ENV['GL_ID']
repo_path = Dir.pwd