diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-04-25 20:41:00 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-04-25 20:41:00 +0300 |
commit | c3c5042249952878ac077d2ffc86ce01a30a212a (patch) | |
tree | ecd4b0b9586666ab30942fd0cc6d7f8d057c92d6 /bin | |
parent | 3986309c0aee87ee5091c6b3de1205c3411cb45b (diff) | |
download | gitlab-shell-c3c5042249952878ac077d2ffc86ce01a30a212a.tar.gz |
Use recursive lookup for git repositories in the bin/create-hooks script
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/create-hooks | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/create-hooks b/bin/create-hooks index d948d87..d4111dc 100755 --- a/bin/create-hooks +++ b/bin/create-hooks @@ -11,7 +11,7 @@ require File.join(ROOT_PATH, 'lib', 'gitlab_metrics') repository_storage_paths = ARGV repository_storage_paths.each do |repo_path| - Dir["#{repo_path.chomp('/')}/*/*.git"].each do |repo| + Dir["#{repo_path.chomp('/')}/**/*.git"].each do |repo| begin GitlabMetrics.measure('command-create-hooks') do GitlabProjects.create_hooks(repo) |