From 9f4613bb8696cf15739ce2deb469407c0bbdefee Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Date: Wed, 13 Aug 2014 07:24:50 +0000 Subject: [PATCH] Fix projects ending with `_git` or `-git` being ignored by post-receive hook --- app/workers/post_receive.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb index 3b0cf77d42eb1..f110e20bf003d 100644 --- a/app/workers/post_receive.rb +++ b/app/workers/post_receive.rb @@ -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) -- GitLab