Skip to content
GitLab
Next
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gitlab-runner
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1,983
Issues
1,983
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
216
Merge Requests
216
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GitLab.org
gitlab-runner
Commits
3d28f4b2
Commit
3d28f4b2
authored
May 31, 2019
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'make-git-init-to-be-quiet' into 'master'
Make git init to be quiet See merge request
!1383
parents
74d738a0
bc2c4e7f
Pipeline
#64142003
failed with stages
in 45 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
shells/abstract.go
shells/abstract.go
+6
-7
No files found.
shells/abstract.go
View file @
3d28f4b2
...
...
@@ -77,6 +77,12 @@ func (b *AbstractShell) writeGitCleanup(w ShellWriter, build *common.Build) {
func
(
b
*
AbstractShell
)
writeRefspecFetchCmd
(
w
ShellWriter
,
build
*
common
.
Build
,
projectDir
string
,
gitDir
string
)
{
depth
:=
build
.
GitInfo
.
Depth
if
depth
>
0
{
w
.
Notice
(
"Fetching changes with git depth set to %d..."
,
depth
)
}
else
{
w
.
Notice
(
"Fetching changes..."
)
}
// initializing
templateDir
:=
w
.
MkTmpDir
(
"git-template"
)
templateFile
:=
path
.
Join
(
templateDir
,
"config"
)
...
...
@@ -90,13 +96,6 @@ func (b *AbstractShell) writeRefspecFetchCmd(w ShellWriter, build *common.Build,
w
.
Cd
(
projectDir
)
b
.
writeGitCleanup
(
w
,
build
)
// fetching
if
depth
>
0
{
w
.
Notice
(
"Fetching changes with git depth set to %d..."
,
depth
)
}
else
{
w
.
Notice
(
"Fetching changes..."
)
}
// Add `git remote` or update existing
w
.
IfCmd
(
"git"
,
"remote"
,
"add"
,
"origin"
,
build
.
GetRemoteURL
())
w
.
Notice
(
"Created fresh repository."
)
...
...
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