danger-additional-logging 0.0.4 → 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 +4 -4
- data/lib/danger/danger_core/dangerfile.rb +1 -0
- data/lib/danger/scm_source/git_repo.rb +9 -2
- data/lib/danger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0927584c4b42a15d25eb9044eb3f1dc4f1ee753ec3062145956078cc43ea399b'
|
4
|
+
data.tar.gz: 59b789936b20af473b82972b4bddbb940afff57cc75e44543bfbbc146e83fed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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})
|
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
|
|
data/lib/danger/version.rb
CHANGED