tracker-client 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/command.rb +1 -1
- metadata +1 -1
data/lib/command.rb
CHANGED
@@ -124,7 +124,7 @@ module Tracker
|
|
124
124
|
|
125
125
|
def self.upload_patch_body(commit_id, body)
|
126
126
|
# Inject TrackedAt header to the commit message
|
127
|
-
body.sub!(/^---/m, "TrackedAt: #{config[:url]}/patch/#{commit_id}\n\n---")
|
127
|
+
body.sub!(/^---/m, "TrackedAt: #{config[:url].gsub(/\/$/, '')}/patch/#{commit_id}\n\n---")
|
128
128
|
patch_file = Tempfile.new(commit_id)
|
129
129
|
begin
|
130
130
|
patch_file.write(body)
|