Browse Source

Adds a user-agent to reposman (#6735).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4288 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.1.0
Jean-Philippe Lang 13 years ago
parent
commit
d9f2bccf70
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      extra/svn/reposman.rb

+ 3
- 1
extra/svn/reposman.rb View File

@@ -180,7 +180,9 @@ rescue LoadError
log("This script requires activeresource.\nRun 'gem install activeresource' to install it.", :exit => true)
end

class Project < ActiveResource::Base; end
class Project < ActiveResource::Base
self.headers["User-agent"] = "Redmine repository manager/#{Version}"
end

log("querying Redmine for projects...", :level => 1);


Loading…
Cancel
Save