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

pre-receive « hooks « gitlab-shell « testdata « hooks « service « internal - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: da4aacbdfdcec800d993b1b05f04299b67a03732 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env ruby

# Tests inputs to pre-receive

abort("FAIL") if $stdin.read.empty?
abort("FAIL") if %w[GL_ID GL_REPOSITORY GL_PROTOCOL GIT_OBJECT_DIRECTORY GIT_ALTERNATE_OBJECT_DIRECTORIES].any? { |k| ENV[k].empty? }

puts "OK"