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
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-10 19:30:02 +0300
committerDouwe Maan <douwe@gitlab.com>2015-04-10 19:31:07 +0300
commit0ece6bd82839d0c9e3e27b65a6a201771f09190e (patch)
tree40c877c8377f2bcad111de9e3bdf0daabdb0c3a3 /app/workers
parent6cf7dd625a7db143c146de1b146cba7dbcbc2576 (diff)
Use `\A` and `\z` in regexes instead of `^` and `$`.
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/post_receive.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb
index 0c3ee6ba4ff..33d8cc8861b 100644
--- a/app/workers/post_receive.rb
+++ b/app/workers/post_receive.rb
@@ -11,8 +11,8 @@ 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!(/^\//, "")
+ repo_path.gsub!(/\.git\z/, "")
+ repo_path.gsub!(/\A\//, "")
project = Project.find_with_namespace(repo_path)