Fixed windows detection in reposman.rb (#8003).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5232 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-03-27 16:58:21 +00:00
parent 96ff8ef4bc
commit d42ce927c7
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ end
log("retrieved #{projects.size} projects", :level => 1) log("retrieved #{projects.size} projects", :level => 1)
def set_owner_and_rights(project, repos_path, &block) def set_owner_and_rights(project, repos_path, &block)
if RUBY_PLATFORM =~ /mswin/ if mswin?
yield if block_given? yield if block_given?
else else
uid, gid = Etc.getpwnam($svn_owner).uid, ($use_groupid ? Etc.getgrnam(project.identifier).gid : Etc.getgrnam($svn_group).gid) uid, gid = Etc.getpwnam($svn_owner).uid, ($use_groupid ? Etc.getgrnam(project.identifier).gid : Etc.getgrnam($svn_group).gid)