gitlab_git 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gitlab_git/repository.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 34d157065d751a14f3dfd7b8547ab09709e9fcde
|
|
4
|
+
data.tar.gz: 015035d1d0a6df46905f847b4b4b76c068c8cc10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77aa972bdf8358c7d483af387fbe353ca4dfca55ade4834830167ccbe299470b2f4e2ae8f557ccae986f3017b9502a4bf68642ea0652e05e8523882fd6e99697
|
|
7
|
+
data.tar.gz: 63ee63de5f12c1607d096ac9474a502d519a141ea4d2a07c18cf622b11014505f7bcc852c94b54e362fddec657ce82b4613a75c0bc0c804952e089a295a52917
|
|
@@ -165,14 +165,13 @@ module Gitlab
|
|
|
165
165
|
# Already packed repo archives stored at
|
|
166
166
|
# app_root/tmp/repositories/project_name/project_name-commit-id.tag.gz
|
|
167
167
|
#
|
|
168
|
-
def archive_repo(ref)
|
|
168
|
+
def archive_repo(ref, storage_path)
|
|
169
169
|
ref = ref || self.root_ref
|
|
170
170
|
commit = self.commit(ref)
|
|
171
171
|
return nil unless commit
|
|
172
172
|
|
|
173
173
|
# Build file path
|
|
174
174
|
file_name = self.path_with_namespace.gsub("/","_") + "-" + commit.id.to_s + ".tar.gz"
|
|
175
|
-
storage_path = Rails.root.join("tmp", "repositories")
|
|
176
175
|
file_path = File.join(storage_path, self.path_with_namespace, file_name)
|
|
177
176
|
|
|
178
177
|
# Put files into a directory before archiving
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab_git
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitriy Zaporozhets
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-04-
|
|
11
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: github-linguist
|