diff options
author | Jonathan A. Sternberg <jonathansternberg@gmail.com> | 2013-11-20 10:21:03 -0500 |
---|---|---|
committer | Jonathan A. Sternberg <jonathansternberg@gmail.com> | 2013-11-20 13:51:43 -0500 |
commit | acab321d8fb357f69420915ec584865f7145e443 (patch) | |
tree | 8b056b204aa9c5c13d2ee98eef37aaf5442c09b7 | |
parent | ba2248f968ba0806c3c97be10ee15a7560685dcd (diff) | |
download | gitlab-shell-acab321d8fb357f69420915ec584865f7145e443.tar.gz |
Removing extra space from the end of gitlab_update error messages
-rw-r--r-- | lib/gitlab_update.rb | 4 |
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 |