Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Web - Open
Gitlab Runner
Commits
f157dc9f
Unverified
Commit
f157dc9f
authored
Jan 22, 2018
by
Alessio Caiazza
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10-2-stable-patch-1' into 10-2-stable
parents
0a75cdd1
395b1ee9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
4 deletions
+14
-4
CHANGELOG.md
CHANGELOG.md
+4
-0
VERSION
VERSION
+1
-1
network/client.go
network/client.go
+7
-1
shells/abstract.go
shells/abstract.go
+1
-1
shells/abstract_test.go
shells/abstract_test.go
+1
-1
No files found.
CHANGELOG.md
View file @
f157dc9f
v 10.2.1 (2018-01-22)
-
Do not use
`git config --local`
as it's not available in git v1.7.1 !790
-
Always load OS certificate pool when evaluating TLS connections !804
v 10.2.0 (2017-11-22)
-
Update supported platforms !712
-
Fix typo in Kubernetes runner docs !714
...
...
VERSION
View file @
f157dc9f
10.2.
0
10.2.
1
network/client.go
View file @
f157dc9f
...
...
@@ -107,7 +107,13 @@ func (n *client) addTLSCA(tlsConfig *tls.Config) {
data
,
err
:=
ioutil
.
ReadFile
(
file
)
if
err
==
nil
{
pool
:=
x509
.
NewCertPool
()
pool
,
err
:=
x509
.
SystemCertPool
()
if
err
!=
nil
{
logrus
.
Warningln
(
"Failed to load system CertPool:"
,
err
)
}
if
pool
==
nil
{
pool
=
x509
.
NewCertPool
()
}
if
pool
.
AppendCertsFromPEM
(
data
)
{
tlsConfig
.
RootCAs
=
pool
n
.
caData
=
data
...
...
shells/abstract.go
View file @
f157dc9f
...
...
@@ -95,7 +95,7 @@ func (b *AbstractShell) writeFetchCmd(w ShellWriter, build *common.Build, projec
w
.
Command
(
"git"
,
"config"
,
"fetch.recurseSubmodules"
,
"false"
)
if
build
.
IsSharedEnv
()
{
b
.
writeGitSSLConfig
(
w
,
build
,
[]
string
{
"--local"
}
)
b
.
writeGitSSLConfig
(
w
,
build
,
nil
)
}
// Remove .git/{index,shallow,HEAD}.lock files from .git, which can fail the fetch command
...
...
shells/abstract_test.go
View file @
f157dc9f
...
...
@@ -36,7 +36,7 @@ func TestWriteGitSSLConfig(t *testing.T) {
mockWriter
.
On
(
"Command"
,
"git"
,
"config"
,
fmt
.
Sprintf
(
"http.%s.%s"
,
gitlabURL
,
"sslCert"
),
tls
.
VariableCertFile
)
.
Once
()
mockWriter
.
On
(
"Command"
,
"git"
,
"config"
,
fmt
.
Sprintf
(
"http.%s.%s"
,
gitlabURL
,
"sslKey"
),
tls
.
VariableKeyFile
)
.
Once
()
shell
.
writeGitSSLConfig
(
mockWriter
,
build
,
make
([]
string
,
0
)
)
shell
.
writeGitSSLConfig
(
mockWriter
,
build
,
nil
)
mockWriter
.
AssertExpectations
(
t
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment