Commit 9f4613bb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix projects ending with `_git` or `-git` being ignored by post-receive hook

parent 3d421c04fb5d
......@@ -12,7 +12,7 @@ def perform(repo_path, oldrev, newrev, ref, identifier)
log("Check gitlab.yml config for correct gitlab_shell.repos_path variable. \"#{Gitlab.config.gitlab_shell.repos_path}\" does not match \"#{repo_path}\"")
end
repo_path.gsub!(/.git$/, "")
repo_path.gsub!(/\.git$/, "")
repo_path.gsub!(/^\//, "")
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