diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-29 03:40:56 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-29 03:40:56 -0700 |
commit | 275f64fb8617e40e47077c0f996efeaed93a6a3d (patch) | |
tree | aa9240a75dbb7dad52ded7ff9819441c7b0fece3 /spec | |
parent | 0a634f34816643f558bb451e2b6064cdab832a30 (diff) | |
parent | 0f1d8e771f3115c12af9ca6e24ea57b2f403b826 (diff) | |
download | gitlab-ce-275f64fb8617e40e47077c0f996efeaed93a6a3d.tar.gz |
Merge pull request #9044 from tsigo/rs-git-template-env
Define GIT_TEMPLATE_DIR environment variable in TestEnv
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/test_env.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb index f869488d8d8..44d70e741b2 100644 --- a/spec/support/test_env.rb +++ b/spec/support/test_env.rb @@ -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 |