summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan A. Sternberg <jonathansternberg@gmail.com>2013-11-20 10:21:03 -0500
committerJonathan A. Sternberg <jonathansternberg@gmail.com>2013-11-20 13:51:43 -0500
commitacab321d8fb357f69420915ec584865f7145e443 (patch)
tree8b056b204aa9c5c13d2ee98eef37aaf5442c09b7
parentba2248f968ba0806c3c97be10ee15a7560685dcd (diff)
downloadgitlab-shell-acab321d8fb357f69420915ec584865f7145e443.tar.gz
Removing extra space from the end of gitlab_update error messages
-rw-r--r--lib/gitlab_update.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_update.rb b/lib/gitlab_update.rb
index 5836b2e..6b3271c 100644
--- a/lib/gitlab_update.rb
+++ b/lib/gitlab_update.rb
@@ -34,7 +34,7 @@ class GitlabUpdate
update_redis
exit 0
else
- puts "GitLab: You are not allowed to access #{@branch_name}! "
+ puts "GitLab: You are not allowed to access #{@branch_name}!"
exit 1
end
else
@@ -57,7 +57,7 @@ class GitlabUpdate
queue = "#{config.redis_namespace}:queue:post_receive"
msg = JSON.dump({'class' => 'PostReceive', 'args' => [@repo_path, @oldrev, @newrev, @refname, @key_id]})
unless system(*config.redis_command, 'rpush', queue, msg, err: '/dev/null', out: '/dev/null')
- puts "GitLab: An unexpected error occurred (redis-cli returned #{$?.exitstatus}). "
+ puts "GitLab: An unexpected error occurred (redis-cli returned #{$?.exitstatus})."
exit 1
end
end