gitarro 0.1.70 → 0.1.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitarro/backend.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9733a05342c74d61f73e6df87b39a98265210aca
|
4
|
+
data.tar.gz: 53afa4031a1dd1ebc43ae7bf6f52f27e8139bfbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4215750b2f25bc6f8794f511fcda36536f35a4737f53ddc619c64b6310a54963608e44942fd10ebb63561e0934d811e4901a0326b0a16c5e51bce4ff5fa42ff6
|
7
|
+
data.tar.gz: aa1e985187efc288ae8aef8f778541a47e56e327bc04b9a8458efe4eed39f6adc0b99c34d020df734f12c76f3af1a85b77ba40cc1d553f1a6e7a6f28b592ba15
|
data/lib/gitarro/backend.rb
CHANGED
@@ -84,7 +84,7 @@ class TestExecutor
|
|
84
84
|
|
85
85
|
# this will clone the repo and execute the tests
|
86
86
|
def pr_test(pr)
|
87
|
-
clone_repo(@noshallow)
|
87
|
+
clone_repo(@noshallow, pr)
|
88
88
|
# export variables
|
89
89
|
export_pr_variables(pr)
|
90
90
|
# do valid tests and store the result
|
@@ -101,7 +101,7 @@ class TestExecutor
|
|
101
101
|
|
102
102
|
private
|
103
103
|
|
104
|
-
def clone_repo(noshallow)
|
104
|
+
def clone_repo(noshallow, pr)
|
105
105
|
shallow = GitShallowClone.new(@git_dir, pr, @options)
|
106
106
|
# by default we use always shallow clone
|
107
107
|
unless noshallow
|
@@ -109,10 +109,10 @@ class TestExecutor
|
|
109
109
|
return
|
110
110
|
end
|
111
111
|
# this is for using the merging to ref
|
112
|
-
full_clone
|
112
|
+
full_clone(pr)
|
113
113
|
end
|
114
114
|
|
115
|
-
def full_clone
|
115
|
+
def full_clone(pr)
|
116
116
|
git = GitOp.new(@git_dir, pr, @options)
|
117
117
|
git.merge_pr_totarget(pr.base.ref, pr.head.ref)
|
118
118
|
git.del_pr_branch(pr.base.ref, pr.head.ref)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitarro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dario Maiocchi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: english
|