tracker-client 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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)
|