summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-04-25 18:32:58 +0000
committerRobert Speicher <robert@gitlab.com>2017-04-25 18:32:58 +0000
commit158b424f9aec0e4ce439f56cb193e369b36e0e46 (patch)
treeecd4b0b9586666ab30942fd0cc6d7f8d057c92d6
parent3986309c0aee87ee5091c6b3de1205c3411cb45b (diff)
parentc3c5042249952878ac077d2ffc86ce01a30a212a (diff)
downloadgitlab-shell-158b424f9aec0e4ce439f56cb193e369b36e0e46.tar.gz
Merge branch 'dz-fix-create-hooks' into 'master'v5.0.3
Use recursive lookup for git repositories in the bin/create-hooks script Closes #82 See merge request !128
-rw-r--r--CHANGELOG3
-rw-r--r--VERSION2
-rwxr-xr-xbin/create-hooks2
3 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 05d0981..c3b92f8 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+v5.0.3
+ - Use recursive lookup for git repositories in the bin/create-hooks script
+
v5.0.2
- Adds timeout option to push branches
diff --git a/VERSION b/VERSION
index a1ef0ca..50e2274 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5.0.2
+5.0.3
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)