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
869fce0d5baa
Commit
a1d10611
authored
Feb 15, 2013
by
Fumiya Nakamura
Browse files
Fix file_name for archive
parent
0f94a1ca07ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/repository.rb
View file @
869fce0d
...
...
@@ -132,7 +132,7 @@ def archive_repo(ref)
return
nil
unless
commit
# Build file path
file_name
=
self
.
path_with_namespace
+
"-"
+
commit
.
id
.
to_s
+
".tar.gz"
file_name
=
self
.
path_with_namespace
.
gsub
(
"/"
,
"_"
)
+
"-"
+
commit
.
id
.
to_s
+
".tar.gz"
storage_path
=
Rails
.
root
.
join
(
"tmp"
,
"repositories"
)
file_path
=
File
.
join
(
storage_path
,
file_name
)
...
...
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