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

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

parent 53ead2e3
......@@ -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}\"")
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