]> source.dussan.org Git - redmine.git/commitdiff
Adds a user-agent to reposman (#6735).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 24 Oct 2010 21:00:05 +0000 (21:00 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 24 Oct 2010 21:00:05 +0000 (21:00 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4288 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/svn/reposman.rb

index b72ad126391ed9cb8dadd186f97d6584339a15de..c92e32c5daf00f9e36f43a0b1a60178eef5a0c3d 100755 (executable)
@@ -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);