summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-27 16:58:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-27 16:58:21 +0000
commitd42ce927c745dd3d70e3aff7892683cd8dd81e97 (patch)
tree87e1f28852c3c8e41e2fe4c165932b264c4b9142 /extra
parent96ff8ef4bc9d879ab9e6e84f7ddec669390c9ccd (diff)
downloadredmine-d42ce927c745dd3d70e3aff7892683cd8dd81e97.tar.gz
redmine-d42ce927c745dd3d70e3aff7892683cd8dd81e97.zip
Fixed windows detection in reposman.rb (#8003).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5232 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rwxr-xr-xextra/svn/reposman.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/svn/reposman.rb b/extra/svn/reposman.rb
index c92e32c5d..36710ac77 100755
--- a/extra/svn/reposman.rb
+++ b/extra/svn/reposman.rb
@@ -205,7 +205,7 @@ end
log("retrieved #{projects.size} projects", :level => 1)
def set_owner_and_rights(project, repos_path, &block)
- if RUBY_PLATFORM =~ /mswin/
+ if mswin?
yield if block_given?
else
uid, gid = Etc.getpwnam($svn_owner).uid, ($use_groupid ? Etc.getgrnam(project.identifier).gid : Etc.getgrnam($svn_group).gid)