提交 06bb7945 编写于 作者: R Rémy Coutable

Merge branch 'post_receive-spaces' into 'master'

Removes spaces in log messages.

refs:
- 6f7ccea6
- 7121a58e
- f54bf003

none of them seem to have added extra space deliberately (commit message is about something else)

## Why was this MR needed?

The spaces caused confusion when trying to analyze the logs, there was no space in user name, but log message indicated there was.

See merge request !7223
...@@ -16,7 +16,7 @@ class PostReceive ...@@ -16,7 +16,7 @@ class PostReceive
post_received = Gitlab::GitPostReceive.new(repo_path, identifier, changes) post_received = Gitlab::GitPostReceive.new(repo_path, identifier, changes)
if post_received.project.nil? if post_received.project.nil?
log("Triggered hook for non-existing project with full path \"#{repo_path} \"") log("Triggered hook for non-existing project with full path \"#{repo_path}\"")
return false return false
end end
...@@ -25,7 +25,7 @@ class PostReceive ...@@ -25,7 +25,7 @@ class PostReceive
elsif post_received.regular_project? elsif post_received.regular_project?
process_project_changes(post_received) process_project_changes(post_received)
else else
log("Triggered hook for unidentifiable repository type with full path \"#{repo_path} \"") log("Triggered hook for unidentifiable repository type with full path \"#{repo_path}\"")
false false
end end
end end
...@@ -37,7 +37,7 @@ class PostReceive ...@@ -37,7 +37,7 @@ class PostReceive
@user ||= post_received.identify(newrev) @user ||= post_received.identify(newrev)
unless @user unless @user
log("Triggered hook for non-existing user \"#{post_received.identifier} \"") log("Triggered hook for non-existing user \"#{post_received.identifier}\"")
return false return false
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册