clc-promote 0.4.0.dev.5 → 0.4.0.dev.6

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/promote/git_repo.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2370bdc623649f9e637860660924b608082218b
4
- data.tar.gz: f135f36d0350951f7febdef6140305f1651be392
3
+ metadata.gz: 3e0d3e484759649de0ee589073f438bbf00b84bd
4
+ data.tar.gz: c97f138780e8c619750e382a3ad72845a49b394e
5
5
  SHA512:
6
- metadata.gz: 9f11ef5e6010171f4426a80199fda83858bf74cb96a894ebb0ec204db055cdcbeb52a8937bec4115fe01dbcaffa0bc391aaf712ce067eb212f1695647cfda28f
7
- data.tar.gz: 6f8a51ac03ba749090c2c7f7c7a12c2fd7b121b9b3779b8491fa78960713e21f830f22ff431d8320af5ebb120b1216a27abb7e8024f340bc7889e38cb31edbf4
6
+ metadata.gz: 2bc8cb72446808a6f709e513779286fac239cea8ba9f08d107d98b791505fc7994b8d145b523744d561315fd6fe73a17bed1b7076ddac99cfa5c763b141c6894
7
+ data.tar.gz: 8a0bf6be03bcc1818c34bf1a07052975bcb43e9a159b2fc86cc6049f3e96fd45013be18df3831e11ca51b771f82d99cd2785eb9e56262dc328f58f276e773f8d
@@ -27,7 +27,11 @@ module Promote
27
27
  end
28
28
 
29
29
  def sha1
30
- @sha1 ||= log.first.sha
30
+ if @sha1.nil?
31
+ first_commit = log.first
32
+ @sha1 = first_commit.nil? ? '' : first_commit.sha
33
+ end
34
+ @sha1
31
35
  end
32
36
 
33
37
  def commit(msg, push = false)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-promote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.dev.5
4
+ version: 0.4.0.dev.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud