branchtree 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: dd97bfe6f75343aa31f97038fbda3a6f49b449541ada339e8fbf018efabea301
4
- data.tar.gz: e86a5b3d491f744324ed5bcd51f888809f458f6beadff7dc2348761751a5ce29
3
+ metadata.gz: 7de167449704a2d6655450fbe8a136b3d7680b5ce97e7d186336a1a52d739276
4
+ data.tar.gz: ad2f1a87c2c336f6bbf86e724f229ba4ef351a77dbc8cebd1e7315e86a6ad529
5
5
  SHA512:
6
- metadata.gz: 5a115f9fcea3734a37deb57e599db7809f9748c5ea10df31fcfaf49a87a62109dba06058902989793a4ff3180fbd11ce7e3e60b03a3815387e1f27fd0ba68dd4
7
- data.tar.gz: ae6cf03add9f81aff4650b69141272136c8685f5deddc9af7c90176580230512fa2973cac76c534ad8860394b35dc8748b84411431a9aee43a7cda50f16f04e3
6
+ metadata.gz: 1b1bd5179c28e0d6ea3d068317a46d488ce628e97e665f0b4eb177a494598dec0f1f4205ab0f6ca68bb06f447129fec18313e0f3692eca2a2d5e6f7b8abe103b
7
+ data.tar.gz: 22306579e2936ae5293c2add7de4a2db9d6f46115ab3a69040aff9a21af4a89fec015e1a8fd9eb5e8c010ef924d4c0619dcfb3102368ec011e7f42c88c516632
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- branchtree (0.1.1)
4
+ branchtree (0.1.2)
5
5
  tty-command (~> 0.10.0)
6
6
  tty-logger (~> 0.6.0)
7
7
  tty-option (~> 0.1.0)
@@ -34,7 +34,7 @@ GEM
34
34
  tty-logger (0.6.0)
35
35
  pastel (~> 0.8)
36
36
  tty-option (0.1.0)
37
- tty-prompt (0.23.0)
37
+ tty-prompt (0.23.1)
38
38
  pastel (~> 0.8)
39
39
  tty-reader (~> 0.8)
40
40
  tty-reader (0.9.0)
@@ -105,7 +105,7 @@ module Branchtree
105
105
  end
106
106
 
107
107
  parent_behind, parent_ahead = 0, 0
108
- if @branch.parent.info.valid?
108
+ if @branch.parent && @branch.parent.info.valid?
109
109
  # Count ahead-behind from parent
110
110
  ahead_behind_parent = @branch.cmd.run(
111
111
  "git", "rev-list", "--left-right", "--count", "refs/heads/#{@branch.parent_branch_name}...#{@branch.full_ref}",
@@ -1,3 +1,3 @@
1
1
  module Branchtree
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: branchtree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ash Wilson