gitlab_git 6.2.0 → 6.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/gitlab_git/ref.rb +8 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2ebe12b24e272322287b0a8997ab416403beda6
4
- data.tar.gz: dca6e6d5eae4d42ddf3df99a64f914fdc19c02b6
3
+ metadata.gz: b2b10551ec24fdb125d2ace7adf4fd627448d71a
4
+ data.tar.gz: c73a01497cf58cf9366f4fefef3d0034905a3417
5
5
  SHA512:
6
- metadata.gz: 414353bd7d4a45d6891dbc926a3446bf8bf9550fd09e296eebcc77ced74dcc0021c3c498bc14a8e0d0d1928451a543ad76c3d2dd0ddeb42160cd977d27f166ce
7
- data.tar.gz: 86a6001b752b38b10335a14a0894137abef2b08e32a6ae6a15a0571f7e15e60d91e75114de0d71872fc8a636c372de119eae703425c287e2d9c9604ae8ea8002
6
+ metadata.gz: adef193ca425170825d13871279c951ad5497c271cd50e3e8eb62089469285ef822632ae0330824e695b018b0a2e73841ce46d0605c324eedb8cc0a1b0ea12ee
7
+ data.tar.gz: 72df752ad01c48cf7de289afbb582061b993cc0492266c301ef2ee097871654387bcea468f39862bcc8fc2bdba861140b8958fef1c3dbf2519c532188e398286
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.2.0
1
+ 6.2.1
@@ -19,7 +19,14 @@ module Gitlab
19
19
  end
20
20
 
21
21
  def initialize(name, target)
22
- @name, @target = name.gsub(/\Arefs\/(tags|heads)\//, ''), target.oid
22
+ @name = name.gsub(/\Arefs\/(tags|heads)\//, '')
23
+ @target = if target.respond_to?(:oid)
24
+ target.oid
25
+ elsif target.respond_to?(:name)
26
+ target.name
27
+ else
28
+ nil
29
+ end
23
30
  end
24
31
  end
25
32
  end
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: 6.2.0
4
+ version: 6.2.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: 2014-08-12 00:00:00.000000000 Z
11
+ date: 2014-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab-linguist