danger-additional-logging 0.0.4 → 0.0.5

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: b958caa6c90f22e86207879c0d532f6a84ad3a04711bf7cecb470c8244ab110a
4
- data.tar.gz: f01edb5637a1256d8592cad779ccc6331958c4bc864197ef6eddc25dcaede358
3
+ metadata.gz: '0927584c4b42a15d25eb9044eb3f1dc4f1ee753ec3062145956078cc43ea399b'
4
+ data.tar.gz: 59b789936b20af473b82972b4bddbb940afff57cc75e44543bfbbc146e83fed3
5
5
  SHA512:
6
- metadata.gz: d5984e2775f7bf506f91cc0f4fb941129a2badbf8eb4528e5fe36efd2fa89e4e367cb6d3f5c76004940b338455ddbcd7a702d8b83d38528ec092e48aba43b4ad
7
- data.tar.gz: d56693b56175aa64f2cd828d3090b9475d5f23fa1e7b88ed4d494cf5a34ce8f4ef15422277211f5b0f786d3584cc1f705ca1ebcb65adfeb792c55fba3088c30a
6
+ metadata.gz: 807c14bb3f91fa88028d4e17db0f8ea79842c466d23cd5dbc761cd638b970cf4924210eb7c5bd877ca642d051a15826332cb949aa747895be1e92a6285e21e3f
7
+ data.tar.gz: c8f6bab5ef63ae8c9aba9c5de208a5dd25a58e1a8aeb847664fa102d7714b51502066c5d8ec8ada5289c48d92f20b194c38dbaf02644e23a300f7383489aa322
@@ -270,6 +270,7 @@ module Danger
270
270
  end
271
271
 
272
272
  def setup_for_running(base_branch, head_branch)
273
+ puts "setup_for_running(base_branch=#{base_branch}, head_branch=#{head_branch})"
273
274
  env.ensure_danger_branches_are_setup
274
275
  env.scm.diff_for_folder(".".freeze, from: base_branch, to: head_branch, lookup_top_level: true)
275
276
  end
@@ -84,13 +84,18 @@ module Danger
84
84
  puts "ensure_commitish_exists_on_branch(#{branch}, commitish=#{commitish})!"
85
85
  return if commit_exists?(commitish)
86
86
 
87
+ puts "Is shallow repo:"
88
+ exect("rev-parse --is-shallow-repository")
89
+
90
+ puts "last 5 commits befor starting git_fetch_branch_to_depth:"
91
+ exec("--no-pager log -n 5")
92
+
87
93
  depth = 0
88
94
  success =
89
95
  (3..6).any? do |factor|
90
96
  depth += Math.exp(factor).to_i
91
97
 
92
- puts "git_fetch_branch_to_depth(#{branch}, depth=#{depth}), last 5 commits:"
93
- exec("git --no-pager log -n 5")
98
+ puts "git_fetch_branch_to_depth(#{branch}, depth=#{depth})"
94
99
 
95
100
  git_fetch_branch_to_depth(branch, depth)
96
101
  commit_exists?(commitish)
@@ -147,6 +152,8 @@ module Danger
147
152
  end
148
153
 
149
154
  def find_merge_base_with_incremental_fetch(repo, from, to)
155
+ puts "find_merge_base_with_incremental_fetch"
156
+
150
157
  from_is_ref = commit_is_ref?(from)
151
158
  to_is_ref = commit_is_ref?(to)
152
159
 
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "0.0.4".freeze
2
+ VERSION = "0.0.5".freeze
3
3
  DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-additional-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox