better solution for #3027
This commit is contained in:
parent
d5663e148f
commit
9ba21dd0c4
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ class Repository
|
||||||
file_path = File.join(storage_path, self.path_with_namespace, file_name)
|
file_path = File.join(storage_path, self.path_with_namespace, file_name)
|
||||||
|
|
||||||
# Put files into a directory before archiving
|
# Put files into a directory before archiving
|
||||||
prefix = self.path_with_namespace + "/"
|
prefix = File.basename(self.path_with_namespace) + "/"
|
||||||
|
|
||||||
# Create file if not exists
|
# Create file if not exists
|
||||||
unless File.exists?(file_path)
|
unless File.exists?(file_path)
|
||||||
|
|
Loading…
Reference in a new issue