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
c7302340
Commit
c7302340
authored
Jul 18, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
8cf85a55
43cbc233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
spec/support/helpers/test_env.rb
spec/support/helpers/test_env.rb
+1
-12
No files found.
spec/support/helpers/test_env.rb
View file @
c7302340
...
...
@@ -141,14 +141,6 @@ module TestEnv
FileUtils
.
mkdir_p
(
artifacts_path
)
end
def
clean_gitlab_test_path
Dir
[
TMP_TEST_PATH
].
each
do
|
entry
|
unless
test_dirs
.
include?
(
File
.
basename
(
entry
))
FileUtils
.
rm_rf
(
entry
)
end
end
end
def
setup_gitlab_shell
component_timed_setup
(
'GitLab Shell'
,
install_dir:
Gitlab
.
config
.
gitlab_shell
.
path
,
...
...
@@ -368,10 +360,7 @@ module TestEnv
# Try to reset without fetching to avoid using the network.
unless
reset
.
call
raise
'Could not fetch test seed repository.'
unless
system
(
*
%W(
#{
Gitlab
.
config
.
git
.
bin_path
}
-C
#{
repo_path
}
fetch origin)
)
# Before we used Git clone's --mirror option, bare repos could end up
# with missing refs, clearing them and retrying should fix the issue.
clean_gitlab_test_path
&&
init
unless
reset
.
call
raise
"Could not update test seed repository, please delete
#{
repo_path
}
and try again"
unless
reset
.
call
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