Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0849e63b
Commit
0849e63b
authored
May 31, 2018
by
NLR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make external commands extend the environment.
This lets user override `HTTP_PROXY` environment (for instance).
parent
bd62278b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
internal/artifacts/entry.go
internal/artifacts/entry.go
+4
-4
No files found.
internal/artifacts/entry.go
View file @
0849e63b
...
...
@@ -67,10 +67,10 @@ func unpackFileFromZip(archivePath, encodedFilename string, headers http.Header,
}
catFile
:=
exec
.
Command
(
"gitlab-zip-cat"
)
catFile
.
Env
=
[]
string
{
"ARCHIVE_PATH="
+
archivePath
,
"ENCODED_FILE_NAME="
+
encodedFilename
,
}
catFile
.
Env
=
append
(
os
.
Environ
(),
"ARCHIVE_PATH="
+
archivePath
,
"ENCODED_FILE_NAME="
+
encodedFilename
,
)
catFile
.
Stderr
=
os
.
Stderr
catFile
.
SysProcAttr
=
&
syscall
.
SysProcAttr
{
Setpgid
:
true
}
stdout
,
err
:=
catFile
.
StdoutPipe
()
...
...
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