Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
d04edf7bf24d
Commit
23425401
authored
Jul 22, 2016
by
Jacob Vosmaer
Browse files
Rubocop
parent
f7802c710647
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controllers/projects/lfs_storage_controller.rb
View file @
d04edf7b
...
...
@@ -16,12 +16,12 @@ def download
def
upload_authorize
render
(
json:
{
StoreLFSPath
:
"
#{
Gitlab
.
config
.
lfs
.
storage_path
}
/tmp/upload"
,
LfsOid
:
oid
,
LfsSize
:
size
,
},
content_type:
'application/json; charset=utf-8'
json:
{
StoreLFSPath
:
"
#{
Gitlab
.
config
.
lfs
.
storage_path
}
/tmp/upload"
,
LfsOid
:
oid
,
LfsSize
:
size
,
},
content_type:
'application/json; charset=utf-8'
)
end
...
...
@@ -103,4 +103,3 @@ def link_to_project(object)
end
end
end
app/helpers/lfs_helper.rb
View file @
d04edf7b
...
...
@@ -56,7 +56,8 @@ def storage_project
@storage_project
||=
begin
result
=
project
while
result
.
forked?
do
loop
do
break
unless
result
.
forked?
result
=
result
.
forked_from_project
end
...
...
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