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
Kazuhiko Shiozaki
gitlab-ce
Commits
275f64fb
Commit
275f64fb
authored
Mar 29, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9044 from tsigo/rs-git-template-env
Define GIT_TEMPLATE_DIR environment variable in TestEnv
parents
0a634f34
0f1d8e77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
spec/support/test_env.rb
spec/support/test_env.rb
+7
-1
No files found.
spec/support/test_env.rb
View file @
275f64fb
...
...
@@ -85,7 +85,7 @@ module TestEnv
end
# We must copy bare repositories because we will push to them.
system
(
*
%W(git clone -q --bare
#{
factory_repo_path
}
#{
factory_repo_path_bare
}
)
)
system
(
git_env
,
*
%W(git clone -q --bare
#{
factory_repo_path
}
#{
factory_repo_path_bare
}
)
)
end
def
copy_repo
(
project
)
...
...
@@ -113,4 +113,10 @@ module TestEnv
def
factory_repo_name
'gitlab-test'
end
# Prevent developer git configurations from being persisted to test
# repositories
def
git_env
{
'GIT_TEMPLATE_DIR'
=>
''
}
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