danger-additional-logging 0.0.2 → 0.0.4
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/scm_source/git_repo.rb +5 -3
- 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: b958caa6c90f22e86207879c0d532f6a84ad3a04711bf7cecb470c8244ab110a
|
4
|
+
data.tar.gz: f01edb5637a1256d8592cad779ccc6331958c4bc864197ef6eddc25dcaede358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5984e2775f7bf506f91cc0f4fb941129a2badbf8eb4528e5fe36efd2fa89e4e367cb6d3f5c76004940b338455ddbcd7a702d8b83d38528ec092e48aba43b4ad
|
7
|
+
data.tar.gz: d56693b56175aa64f2cd828d3090b9475d5f23fa1e7b88ed4d494cf5a34ce8f4ef15422277211f5b0f786d3584cc1f705ca1ebcb65adfeb792c55fba3088c30a
|
@@ -81,15 +81,16 @@ module Danger
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def ensure_commitish_exists_on_branch!(branch, commitish)
|
84
|
+
puts "ensure_commitish_exists_on_branch(#{branch}, commitish=#{commitish})!"
|
84
85
|
return if commit_exists?(commitish)
|
85
86
|
|
86
|
-
puts "ensure_commitish_exists_on_branch!"
|
87
|
-
|
88
87
|
depth = 0
|
89
88
|
success =
|
90
89
|
(3..6).any? do |factor|
|
91
90
|
depth += Math.exp(factor).to_i
|
92
|
-
|
91
|
+
|
92
|
+
puts "git_fetch_branch_to_depth(#{branch}, depth=#{depth}), last 5 commits:"
|
93
|
+
exec("git --no-pager log -n 5")
|
93
94
|
|
94
95
|
git_fetch_branch_to_depth(branch, depth)
|
95
96
|
commit_exists?(commitish)
|
@@ -108,6 +109,7 @@ module Danger
|
|
108
109
|
end
|
109
110
|
|
110
111
|
def git_fetch_branch_to_depth(branch, depth)
|
112
|
+
puts "fetch --depth=#{depth} --prune origin +refs/heads/#{branch}:refs/remotes/origin/#{branch}"
|
111
113
|
exec("fetch --depth=#{depth} --prune origin +refs/heads/#{branch}:refs/remotes/origin/#{branch}")
|
112
114
|
end
|
113
115
|
|
data/lib/danger/version.rb
CHANGED