Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OHR Support
Manage
Activity
Members
Labels
Plan
Issues
97
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
OHR Support
Commits
59f92c97
Commit
59f92c97
authored
12 years ago
by
Francisco Juan
Browse files
Options
Downloads
Patches
Plain Diff
fix redmine checkout plugin for ruby 1.9.2
parent
2ea72662
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vendor/plugins/redmine_checkout/lib/checkout/protocol.rb
+6
-6
6 additions, 6 deletions
vendor/plugins/redmine_checkout/lib/checkout/protocol.rb
with
6 additions
and
6 deletions
vendor/plugins/redmine_checkout/lib/checkout/protocol.rb
+
6
−
6
View file @
59f92c97
...
...
@@ -71,14 +71,14 @@ module Checkout
@access
end
end
def
access_label
(
user
)
case
access_rw
(
user
)
when
'read+write'
:
:label_access_read_write
when
'read-only'
:
:label_access_read_only
when
'read+write'
then
:label_access_read_write
when
'read-only'
then
:label_access_read_only
end
end
def
fixed_url
@fixed_url
.
present?
?
@fixed_url
:
begin
if
(
regex
.
blank?
||
regex_replacement
.
blank?
)
...
...
@@ -93,7 +93,7 @@ module Checkout
def
url
(
path
=
""
)
return
""
unless
repository
url
=
fixed_url
.
sub
(
/\/+$/
,
""
)
if
repository
.
allow_subtree_checkout?
&&
self
.
append_path?
&&
path
.
present?
url
=
"
#{
url
}
/
#{
path
}
"
...
...
@@ -115,4 +115,4 @@ module Checkout
url
end
end
end
\ No newline at end of file
end
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment