Gitlab::GitLogger.error("POST-RECEIVE: Check gitlab.yml config for correct gitlab_shell.repos_path variable. \"#{Gitlab.config.gitlab_shell.repos_path}\" does not match \"#{repo_path}\"")
log("Check gitlab.yml config for correct gitlab_shell.repos_path variable. \"#{Gitlab.config.gitlab_shell.repos_path}\" does not match \"#{repo_path}\"")
end
end
repo_path.gsub!(/.git$/,"")
repo_path.gsub!(/.git$/,"")
...
@@ -17,31 +18,21 @@ class PostReceive
...
@@ -17,31 +18,21 @@ class PostReceive
project=Project.find_with_namespace(repo_path)
project=Project.find_with_namespace(repo_path)
ifproject.nil?
ifproject.nil?
Gitlab::GitLogger.error("POST-RECEIVE: Triggered hook for non-existing project with full path \"#{repo_path}\"")
log("Triggered hook for non-existing project with full path \"#{repo_path}\"")