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 +4 -4
- data/VERSION +1 -1
- data/lib/gitlab_git/repository.rb +4 -1
- data/lib/gitlab_git/tag.rb +12 -1
- 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: 7c6105a4756fd689a3d5c54d7335c9873364c473
|
4
|
+
data.tar.gz: 3f7005c2ae1c7f1ba84984559547040f851215ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55d94d228cb06b35c0aa375833387170f503ba2e05e2c89b5775f91de9f40e534472e4100777ac3c568c64d8c0347969ecf599103cacb5b28766e0fc120c79c4
|
7
|
+
data.tar.gz: 903ef839de16ca0ce55b063cb5626f67863e59461ad14f818ca19d30faacc8b7d62cca303f611a72beda7892b5a6fe9216e3cfbf2bc13981a1851e380f34ebe4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.4.
|
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
|
|
data/lib/gitlab_git/tag.rb
CHANGED
@@ -1,8 +1,19 @@
|
|
1
1
|
module Gitlab
|
2
2
|
module Git
|
3
3
|
class Tag < Ref
|
4
|
-
|
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.
|
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-
|
11
|
+
date: 2016-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-linguist
|