Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'file_hooks/examples/save_to_file.rb')
-rwxr-xr-xfile_hooks/examples/save_to_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/file_hooks/examples/save_to_file.rb b/file_hooks/examples/save_to_file.rb
index 61b0df9bfd6..88e5986337b 100755
--- a/file_hooks/examples/save_to_file.rb
+++ b/file_hooks/examples/save_to_file.rb
@@ -1,3 +1,3 @@
#!/usr/bin/env ruby
-x = STDIN.read
+x = $stdin.read
File.write('/tmp/rb-data.txt', x)