diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-10-24 21:00:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-10-24 21:00:05 +0000 |
commit | d9f2bccf7092a50ba34f100b9a73d89e5b678bf7 (patch) | |
tree | d48901010f78b6528fdd5379cb6e3819b98bde99 /extra | |
parent | d642964035e6be4687c37e9e01af4b5590580396 (diff) | |
download | redmine-d9f2bccf7092a50ba34f100b9a73d89e5b678bf7.tar.gz redmine-d9f2bccf7092a50ba34f100b9a73d89e5b678bf7.zip |
Adds a user-agent to reposman (#6735).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4288 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rwxr-xr-x | extra/svn/reposman.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extra/svn/reposman.rb b/extra/svn/reposman.rb index b72ad1263..c92e32c5d 100755 --- a/extra/svn/reposman.rb +++ b/extra/svn/reposman.rb @@ -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); |