Fix worker specs to parse namespaces
This commit is contained in:
parent
80e984ee5e
commit
8a08fdcd32
2 changed files with 11 additions and 6 deletions
|
@ -2,8 +2,9 @@ class PostReceive
|
|||
@queue = :post_receive
|
||||
|
||||
def self.perform(repo_path, oldrev, newrev, ref, identifier)
|
||||
repo_path = repo_path.gsub(Gitlab.config.git_base_path, "")
|
||||
repo_path = repo_path.gsub(/.git$/, "")
|
||||
repo_path.gsub!(Gitlab.config.git_base_path.to_s, "")
|
||||
repo_path.gsub!(/.git$/, "")
|
||||
repo_path.gsub!(/^\//, "")
|
||||
|
||||
project = Project.find_with_namespace(repo_path)
|
||||
return false if project.nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue