Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-13 11:24:50 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-13 11:24:50 +0400
commit9f4613bb8696cf15739ce2deb469407c0bbdefee (patch)
tree51d5c49f5371e76a40055cac2a2e8fb4a5c5222e /app
parent53ead2e35c9195ae1f68bf5d7154e341636caf1b (diff)
Fix projects ending with `_git` or `-git` being ignored by post-receive hook
Diffstat (limited to 'app')
-rw-r--r--app/workers/post_receive.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb
index 3b0cf77d42e..f110e20bf00 100644
--- a/app/workers/post_receive.rb
+++ b/app/workers/post_receive.rb
@@ -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)