As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 33c2bca5 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Merge branch 'rescue_in_create_hooks' into 'version-1-9'

1.9.8: Ignore missing repositories in create-hooks

See merge request !43
parents 91753e93 06cc5db6
No related branches found
No related tags found
No related merge requests found
v1.9.8
- Ignore missing repositories in create-hooks
v1.9.7
- Increased test coverage
- By default use direct unicorn connection (localhost:8080)
Loading
Loading
Loading
Loading
@@ -8,5 +8,9 @@ require_relative '../lib/gitlab_init'
require File.join(ROOT_PATH, 'lib', 'gitlab_projects')
Dir["#{GitlabConfig.new.repos_path}/*/*.git"].each do |repo|
GitlabProjects.create_hooks(repo)
begin
GitlabProjects.create_hooks(repo)
rescue Errno::ENOENT
# The user must have deleted their repository. Ignore.
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment