gitlab-grit 2.6.2 → 2.6.3

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/grit/submodule.rb +8 -3
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51dd36ad6344dca95142a1b1aad17b57fb215332
4
- data.tar.gz: 6f61c249d2f98c60da293ab78a5202b69544039c
3
+ metadata.gz: b19f3553df3eba3f189d679f92cf518131004424
4
+ data.tar.gz: cec807dd7a7d01ffe0311b7780f60e31ca01df95
5
5
  SHA512:
6
- metadata.gz: 1bbd77f134862fcc323a21eaf15821e088011210c4c74e514429311bbe1642c7a3b75f9eeb8e19be7c71dfce694f6db6b41787037960f68c21cb00ebada28a22
7
- data.tar.gz: 939277d6a7f2f010ca0c34f7c7ca7e40c71868bfa099c687fe225e30bec380809acd67bd04e1f17f76b1a0cdfd4fedda3697dd2aecfd873ed0dd52ed0364b9de
6
+ metadata.gz: 3c4ed9ebbe990a3a6769015c2b7501e1cbc4f63265bc82f2102a67d33d195668f0c1ba8c52d7ad05a9fe384b193bcf02007e0a545883b6f701d14312f445728c
7
+ data.tar.gz: f28cf318cba6381d283552551974f89b49c42e3ebad7a17a399dc311e0481af06d7a4da2fd9d844922e3f79bbad6ccf202147e58647aab908ad8431b5150ae5b
@@ -63,10 +63,15 @@ module Grit
63
63
  if line =~ /^\[submodule "(.+)"\]$/
64
64
  current = $1
65
65
  config[current] = {}
66
- config[current]['id'] = (commit.tree/current).id
66
+ submodule = (commit.tree/current.strip)
67
+ config[current]['id'] = submodule.id if submodule
67
68
  elsif line =~ /^\t(\w+) = (.+)$/
68
69
  config[current][$1] = $2
69
- config[current]['id'] = (commit.tree/$2).id if $1 == 'path'
70
+
71
+ if $1 == 'path'
72
+ submodule = (commit.tree/$2.strip)
73
+ config[current]['id'] = submodule.id if submodule
74
+ end
70
75
  else
71
76
  # ignore
72
77
  end
@@ -85,4 +90,4 @@ module Grit
85
90
  end
86
91
  end # Submodule
87
92
 
88
- end # Grit
93
+ end # Grit
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-grit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-13 00:00:00.000000000 Z
13
+ date: 2013-11-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: charlock_holmes
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.0.3
154
+ rubygems_version: 2.1.11
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Ruby Git bindings.