Commit 67c5d381 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'dont-ignore-git-projects' into 'master'

Fix post-receive worker for some projects

If project ends with `-git` or `_git` or any kind of `git` - it get ignored by post-receive worker

See merge request !1018
parents aa3d3451 9f4613bb
...@@ -12,7 +12,7 @@ class PostReceive ...@@ -12,7 +12,7 @@ class PostReceive
log("Check gitlab.yml config for correct gitlab_shell.repos_path variable. \"#{Gitlab.config.gitlab_shell.repos_path}\" does not match \"#{repo_path}\"") log("Check gitlab.yml config for correct gitlab_shell.repos_path variable. \"#{Gitlab.config.gitlab_shell.repos_path}\" does not match \"#{repo_path}\"")
end end
repo_path.gsub!(/.git$/, "") repo_path.gsub!(/\.git$/, "")
repo_path.gsub!(/^\//, "") repo_path.gsub!(/^\//, "")
project = Project.find_with_namespace(repo_path) project = Project.find_with_namespace(repo_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment