Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
59f92c97
Commit
59f92c97
authored
Apr 17, 2012
by
Francisco Juan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix redmine checkout plugin for ruby 1.9.2
parent
2ea72662
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
protocol.rb
vendor/plugins/redmine_checkout/lib/checkout/protocol.rb
+6
-6
No files found.
vendor/plugins/redmine_checkout/lib/checkout/protocol.rb
View file @
59f92c97
...
@@ -71,14 +71,14 @@ module Checkout
...
@@ -71,14 +71,14 @@ module Checkout
@access
@access
end
end
end
end
def
access_label
(
user
)
def
access_label
(
user
)
case
access_rw
(
user
)
case
access_rw
(
user
)
when
'read+write'
:
:label_access_read_write
when
'read+write'
then
:label_access_read_write
when
'read-only'
:
:label_access_read_only
when
'read-only'
then
:label_access_read_only
end
end
end
end
def
fixed_url
def
fixed_url
@fixed_url
.
present?
?
@fixed_url
:
begin
@fixed_url
.
present?
?
@fixed_url
:
begin
if
(
regex
.
blank?
||
regex_replacement
.
blank?
)
if
(
regex
.
blank?
||
regex_replacement
.
blank?
)
...
@@ -93,7 +93,7 @@ module Checkout
...
@@ -93,7 +93,7 @@ module Checkout
def
url
(
path
=
""
)
def
url
(
path
=
""
)
return
""
unless
repository
return
""
unless
repository
url
=
fixed_url
.
sub
(
/\/+$/
,
""
)
url
=
fixed_url
.
sub
(
/\/+$/
,
""
)
if
repository
.
allow_subtree_checkout?
&&
self
.
append_path?
&&
path
.
present?
if
repository
.
allow_subtree_checkout?
&&
self
.
append_path?
&&
path
.
present?
url
=
"
#{
url
}
/
#{
path
}
"
url
=
"
#{
url
}
/
#{
path
}
"
...
@@ -115,4 +115,4 @@ module Checkout
...
@@ -115,4 +115,4 @@ module Checkout
url
url
end
end
end
end
end
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment