Permalink
Browse files

Remove "Git:"

The URL is already indicative of github.com so putting "Git: " in front of it is superfluous and uses characters that can be used to display a longer commit message.
  • Loading branch information...
1 parent ebf0b10 commit b2501efb48402fbabb4acf7e4b887cbcaba9c422 @annevk annevk committed Nov 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 services/twitter.rb
View
@@ -14,7 +14,7 @@ def receive_push
url = "#{payload['repository']['url']}/commits/#{ref_name}"
status = "[#{repository}] #{url} #{author['name']} - #{payload['commits'].length} commits"
status = if data['short_format'] == '1'
- "Git: #{url} - #{payload['commits'].length} commits"
+ "#{url} - #{payload['commits'].length} commits"
else
"[#{repository}] #{url} #{author['name']} - #{payload['commits'].length} commits"
end
@@ -30,7 +30,7 @@ def receive_push
url = commit['url']
status = "[#{repository}] #{url} #{author['name']} - #{commit['message']}"
status = if data['short_format'] == '1'
- "Git: #{url} #{commit['message']}"
+ "#{url} #{commit['message']}"
else
"[#{repository}] #{url} #{author['name']} - #{commit['message']}"
end

0 comments on commit b2501ef

Please sign in to comment.