danger-additional-logging 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0fcc4a29b52ef11725628688e2c025a2f8bdff9e54c95b2fe0e67ad25e2ce75
4
- data.tar.gz: b6ce762da00edd4db98f808e76abdf909604e8d39e4b12d8d50eaea69d2360df
3
+ metadata.gz: '0927584c4b42a15d25eb9044eb3f1dc4f1ee753ec3062145956078cc43ea399b'
4
+ data.tar.gz: 59b789936b20af473b82972b4bddbb940afff57cc75e44543bfbbc146e83fed3
5
5
  SHA512:
6
- metadata.gz: 9f4197ced424fcb382b7f1c58e96aecfd3ba8306bb3e73dc70204ad70760470742719209382ef27e51f3f809675d78b296ffbfa34d95803f145f24b3833b2ba0
7
- data.tar.gz: dff05dfc6afcc1fcf07a6ae074d7ca1ee1026d523635411c033dff6740492145aa1bdae85a11ac380075d80c2e1c34f6a3b62ad8a5e3e3f8fd550e1f4aca1983
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,10 +84,17 @@ 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
97
+
91
98
  puts "git_fetch_branch_to_depth(#{branch}, depth=#{depth})"
92
99
 
93
100
  git_fetch_branch_to_depth(branch, depth)
@@ -107,6 +114,7 @@ module Danger
107
114
  end
108
115
 
109
116
  def git_fetch_branch_to_depth(branch, depth)
117
+ puts "fetch --depth=#{depth} --prune origin +refs/heads/#{branch}:refs/remotes/origin/#{branch}"
110
118
  exec("fetch --depth=#{depth} --prune origin +refs/heads/#{branch}:refs/remotes/origin/#{branch}")
111
119
  end
112
120
 
@@ -144,6 +152,8 @@ module Danger
144
152
  end
145
153
 
146
154
  def find_merge_base_with_incremental_fetch(repo, from, to)
155
+ puts "find_merge_base_with_incremental_fetch"
156
+
147
157
  from_is_ref = commit_is_ref?(from)
148
158
  to_is_ref = commit_is_ref?(to)
149
159
 
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "0.0.3".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.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox