Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-workhorse
Commits
4639b93e
Commit
4639b93e
authored
Aug 02, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a quieter command to check repo integrity
parent
f0fe3503
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main_test.go
main_test.go
+4
-4
No files found.
main_test.go
View file @
4639b93e
...
...
@@ -45,10 +45,10 @@ func TestAllowedClone(t *testing.T) {
cloneCmd
:=
exec
.
Command
(
"git"
,
"clone"
,
remote
,
checkoutDir
)
runOrFail
(
t
,
cloneCmd
)
// We may have cloned an 'empty' repository, 'git
show
' will fail in it
showCmd
:=
exec
.
Command
(
"git"
,
"show
"
)
show
Cmd
.
Dir
=
checkoutDir
runOrFail
(
t
,
show
Cmd
)
// We may have cloned an 'empty' repository, 'git
log
' will fail in it
logCmd
:=
exec
.
Command
(
"git"
,
"log"
,
"-1"
,
"--oneline
"
)
log
Cmd
.
Dir
=
checkoutDir
runOrFail
(
t
,
log
Cmd
)
}
func
TestDeniedClone
(
t
*
testing
.
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