gitlab_git 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gitlab_git/repository.rb +1 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bf57ee88393b04446091e0476d70169ae045025
4
- data.tar.gz: cdf473dd287011601260907b3d5f228b4e0c62b5
3
+ metadata.gz: 34d157065d751a14f3dfd7b8547ab09709e9fcde
4
+ data.tar.gz: 015035d1d0a6df46905f847b4b4b76c068c8cc10
5
5
  SHA512:
6
- metadata.gz: 3633986240af6338ca0cda112aa9cb6e00c52465e3839a1eed3695577551d9bfafc9dec2826885cf3d0c76f25837a0c68484b340e824d20162ed8e6bce08c94b
7
- data.tar.gz: 5592af8920f8de1ae2d806a6dd7d40c8cf170db81551d08d5205a815cbdb2d023449e318e22e7eb19e8830a507b98ef6836c3a45c82d6d9a0a0dc230a7920040
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
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-28 00:00:00.000000000 Z
11
+ date: 2013-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-linguist