def gitolite_friendly(permission)
      if permission.empty?
        return nil
      elsif permission.match(/^RWDP?/)
        return "RW+"
      elsif permission.match(/^RW/)
        return "RW+"
      elsif permission.match(/^R/)
        return 'R'
      else
        return nil
      end
    end
def gitolite_friendly(permission)
      if permission.empty?
        return nil
      elsif permission.match(/^RWDP?/)
        return "RW+"
      elsif permission.match(/^RW/)
        return "RW+"
      elsif permission.match(/^R/)
        return 'R'
      else
        return nil
      end
    end
Converts permission to gitolite friendly permission