diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-20 18:38:24 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-20 18:38:24 +0000 |
commit | 983a0bba5d2a042c4a3bbb22432ec192c7501d82 (patch) | |
tree | b153cd387c14ba23bd5a07514c7c01fddf6a78a0 /file_hooks | |
parent | a2bddee2cdb38673df0e004d5b32d9f77797de64 (diff) | |
download | gitlab-ce-983a0bba5d2a042c4a3bbb22432ec192c7501d82.tar.gz |
Add latest changes from gitlab-org/gitlab@12-10-stable-ee
Diffstat (limited to 'file_hooks')
-rw-r--r-- | file_hooks/.gitignore | 5 | ||||
-rwxr-xr-x | file_hooks/examples/save_to_file.clj | 3 | ||||
-rwxr-xr-x | file_hooks/examples/save_to_file.rb | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/file_hooks/.gitignore b/file_hooks/.gitignore new file mode 100644 index 00000000000..e4ccdc9e2ec --- /dev/null +++ b/file_hooks/.gitignore @@ -0,0 +1,5 @@ +* +!*/ +!.gitignore +!.gitkeep +!examples/* diff --git a/file_hooks/examples/save_to_file.clj b/file_hooks/examples/save_to_file.clj new file mode 100755 index 00000000000..a59d83749d3 --- /dev/null +++ b/file_hooks/examples/save_to_file.clj @@ -0,0 +1,3 @@ +#!/usr/bin/env clojure +(let [in (slurp *in*)] + (spit "/tmp/clj-data.txt" in)) diff --git a/file_hooks/examples/save_to_file.rb b/file_hooks/examples/save_to_file.rb new file mode 100755 index 00000000000..61b0df9bfd6 --- /dev/null +++ b/file_hooks/examples/save_to_file.rb @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +x = STDIN.read +File.write('/tmp/rb-data.txt', x) |