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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
8bf5203b
Commit
8bf5203b
authored
Feb 08, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress git output when running QA as a non-default user
parent
d6fd2f5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
qa/qa/git/repository.rb
qa/qa/git/repository.rb
+12
-2
No files found.
qa/qa/git/repository.rb
View file @
8bf5203b
...
@@ -33,7 +33,7 @@ module QA
...
@@ -33,7 +33,7 @@ module QA
end
end
def
clone
(
opts
=
''
)
def
clone
(
opts
=
''
)
`git clone
#{
opts
}
#{
@uri
.
to_s
}
./`
`git clone
#{
opts
}
#{
@uri
.
to_s
}
./
#{
suppress_output
}
`
end
end
def
shallow_clone
def
shallow_clone
...
@@ -61,12 +61,22 @@ module QA
...
@@ -61,12 +61,22 @@ module QA
end
end
def
push_changes
(
branch
=
'master'
)
def
push_changes
(
branch
=
'master'
)
`git push
#{
@uri
.
to_s
}
#{
branch
}
`
`git push
#{
@uri
.
to_s
}
#{
branch
}
#{
suppress_output
}
`
end
end
def
commits
def
commits
`git log --oneline`
.
split
(
"
\n
"
)
`git log --oneline`
.
split
(
"
\n
"
)
end
end
private
def
suppress_output
# If we're running as the default user, it's probably a temporary
# instance and output can be useful for debugging
return
if
@username
==
Runtime
::
User
.
default_name
"&>
#{
File
::
NULL
}
"
end
end
end
end
end
end
end
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