diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb index 3b0cf77d42eb135e934d1b28968b21bfa6695cee..f110e20bf003d02279d224c7a49eddace2fa5202 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)