gitlab_git 10.4.0 → 10.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1115974e3de5f5c12b50a8ba8d4551cfd8d98f0d
4
- data.tar.gz: 1e35d62d7867e80a75ec7a7b157dcddb283c8835
3
+ metadata.gz: 7c6105a4756fd689a3d5c54d7335c9873364c473
4
+ data.tar.gz: 3f7005c2ae1c7f1ba84984559547040f851215ff
5
5
  SHA512:
6
- metadata.gz: 636e47d38d0f91058c3f985c60dffbeaa28cf95733dfa63cd7c7de67495a808b4bb3b23554e9a8331988786aa954b63e4a59c3365075080b4a26c1a579b2c1cc
7
- data.tar.gz: 0b97a98a7e2d981fa9833f204b97174f1173bb7e4eff932546d700c0cc9a8dbde17a6c466c338e2c8c79d34b9cfa532eaf764164ac684c5175df587fbf8a3d25
6
+ metadata.gz: 55d94d228cb06b35c0aa375833387170f503ba2e05e2c89b5775f91de9f40e534472e4100777ac3c568c64d8c0347969ecf599103cacb5b28766e0fc120c79c4
7
+ data.tar.gz: 903ef839de16ca0ce55b063cb5626f67863e59461ad14f818ca19d30faacc8b7d62cca303f611a72beda7892b5a6fe9216e3cfbf2bc13981a1851e380f34ebe4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.4.0
1
+ 10.4.1
@@ -98,14 +98,17 @@ module Gitlab
98
98
  message = nil
99
99
 
100
100
  if ref.target.is_a?(Rugged::Tag::Annotation)
101
+ object = ref.target
101
102
  tag_message = ref.target.message
102
103
 
103
104
  if tag_message.respond_to?(:chomp)
104
105
  message = tag_message.chomp
105
106
  end
107
+ else
108
+ object = nil # Lightweight tags aren't git objects
106
109
  end
107
110
 
108
- Tag.new(self, ref.name, ref.target, message)
111
+ Tag.new(self, object, ref.name, ref.target, message)
109
112
  end.sort_by(&:name)
110
113
  end
111
114
 
@@ -1,8 +1,19 @@
1
1
  module Gitlab
2
2
  module Git
3
3
  class Tag < Ref
4
- def initialize(repository, name, target, message = nil)
4
+ attr_reader :object_sha
5
+
6
+ def initialize(repository, object, name, target, message = nil)
5
7
  super(repository, name, target)
8
+ @object_sha = if object.respond_to?(:oid)
9
+ object.oid
10
+ elsif object.respond_to?(:name)
11
+ object.name
12
+ elsif object.is_a? String
13
+ object
14
+ else
15
+ nil
16
+ end
6
17
  @message = message
7
18
  end
8
19
 
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: 10.4.0
4
+ version: 10.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Zaporozhets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-19 00:00:00.000000000 Z
11
+ date: 2016-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-linguist